Changeset 958


Ignore:
Timestamp:
Jan 26, 2008 1:29:06 AM (5 years ago)
Author:
jrollins
Message:

runit: added some more to the atftpd run script, trying to get it to
log to stdout (need to specify user other than nobody, i think)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/runit/servicedirs/atftpd/run

    r957 r958  
    22exec 2>&1 
    33 
    4 OPTIONS="--daemon --no-fork" 
     4OPTIONS="--daemon --no-fork --logfile /dev/stdout --tftpd-timeout 30 --retry-timeout 5 --no-tsize --no-blksize --no-multicast --maxthread 1000 --verbose=7" 
    55export OPTIONS 
    66 
     
    88    # check that root directory exists 
    99    if [ ! -d "$ROOT" ] ; then 
     10        echo "ROOT directory '$ROOT' does not exist." 
    1011        exit 1 
    1112    fi 
    12     # check if an address is specified 
     13    # check if address is specified 
    1314    if [ "$ADDRESS" ] ; then 
    1415        OPTIONS="$OPTIONS --bind-address $ADDRESS" 
    1516    fi 
     17    # check if port is specified 
    1618    if [ "$PORT" ] ; then 
    1719        OPTIONS="$OPTIONS --port $PORT" 
    1820    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" 
     28    fi 
     29    echo "in.tftpd $OPTIONS $ROOT" 
    1930    exec in.tftpd $OPTIONS "$ROOT" 
    2031} 
Note: See TracChangeset for help on using the changeset viewer.