3 # Author: Jaakko Niemi <liiwi@iki.fi>
4 # Modified from skeleton file in sarge
10 #Defaults for tftpd-hpa
12 OPTIONS
="-l -s /var/lib/tftpboot"
19 PATH
=/usr
/local
/sbin
:/usr
/local
/bin
:/sbin
:/bin
:/usr
/sbin
:/usr
/bin
22 DAEMON
=/usr
/sbin
/$NAME
23 PIDFILE
=/var
/run
/$NAME.pid
24 SCRIPTNAME
=/etc
/init.d
/S80tftpd-hpa
26 # Gracefully exit if the package has been removed.
27 test -x $DAEMON ||
exit 0
30 if [ "$RUN_DAEMON" != "yes" ] ; then
31 echo "tftpd-hpa disabled in /etc/init.d/S80tftpd-hpa"
36 # Function that starts the daemon/service.
39 start-stop-daemon
--start --quiet --exec $DAEMON -- $OPTIONS
43 # Function that stops the daemon/service.
46 start-stop-daemon
--stop --quiet --name $NAME
50 # Function that sends a SIGHUP to the daemon/service.
53 start-stop-daemon
--stop --quiet --name $NAME --signal 1
58 echo -n "Starting $DESC: $NAME"
63 echo -n "Stopping $DESC: $NAME"
69 # If the daemon can reload its configuration without
70 # restarting (for example, when it is sent a SIGHUP),
71 # then implement that here.
73 # If the daemon responds to changes in its config file
74 # directly anyway, make this an "exit 0".
76 # echo -n "Reloading $DESC configuration..."
82 # If the "reload" option is implemented, move the "force-reload"
83 # option to the "reload" entry above. If not, "force-reload" is
84 # just the same as "restart".
86 echo -n "Restarting $DESC: $NAME"
93 # echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
94 echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2