Changeset 960


Ignore:
Timestamp:
Jan 26, 2008, 2:41:10 AM (11 years ago)
Author:
jrollins
Message:

runit: re-added tftpd-hpa service dir, for use with version 0.48 of tftpd-hpa

Location:
trunk/runit/servicedirs/tftpd-hpa
Files:
3 copied

Legend:

Unmodified
Added
Removed
  • trunk/runit/servicedirs/tftpd-hpa/README

    r959 r960  
    33directory.
    44
    5 atftpd requires the following environment variable:
     5tftpd-hpa requires the following environment variable:
    66env/ROOT - the path to the tftp root directory
    77
    8 atftpd may have the following environment variable:
    9 env/ADDRESS - network address to listen on
    10 env/PORT - network port to listen on
    11 env/USER - user to run as
    12 env/GROUP - group to run as
     8tftpd-hpa may have the following environment variable:
     9env/ADDRESS - network address[:port] to listen on
     10
  • trunk/runit/servicedirs/tftpd-hpa/run

    r958 r960  
    22exec 2>&1
    33
    4 OPTIONS="--daemon --no-fork --logfile /dev/stdout --tftpd-timeout 30 --retry-timeout 5 --no-tsize --no-blksize --no-multicast --maxthread 1000 --verbose=7"
     4OPTIONS="-L -s -v"
    55export OPTIONS
    66
     
    1313    # check if address is specified
    1414    if [ "$ADDRESS" ] ; then
    15         OPTIONS="$OPTIONS --bind-address $ADDRESS"
    16     fi
    17     # check if port is specified
    18     if [ "$PORT" ] ; then
    19         OPTIONS="$OPTIONS --port $PORT"
    20     fi
    21     # check if user is specified
    22     if [ "$USER" ] ; then
    23         OPTIONS="$OPTIONS --user $USER"
    24     fi
    25     # check if group is specified
    26     if [ "$GROUP" ] ; then
    27         OPTIONS="$OPTIONS --group $GROUP"
     15        OPTIONS="$OPTIONS -a $ADDRESS"
    2816    fi
    2917    echo "in.tftpd $OPTIONS $ROOT"
Note: See TracChangeset for help on using the changeset viewer.