3 # This is an init script for openembedded
4 # Copy it to /etc/init.d/thttpd and type
5 # > update-rc.d thttpd defaults 60
9 thttpd=/usr/sbin/thttpd
10 test -x "$thttpd" || exit 0
15 echo -n "Starting thttpd"
16 start-stop-daemon --start --quiet --exec $thttpd -- -d @@SRVDIR
20 echo -n "Stopping thttpd"
21 start-stop-daemon --stop --quiet --exec $thttpd
25 start-stop-daemon --stop --quiet --signal 1 --exec $thttpd
28 echo -n "Stopping thttpd"
29 start-stop-daemon --stop --quiet --exec $thttpd -- -d @@SRVDIR
31 echo -n "Waiting for thttpd to die off"
38 echo -n "Starting thttpd"
39 start-stop-daemon --start --quiet --exec $thttpd -- -d @@SRVDIR
43 echo "Usage: /etc/init.d/thttpd {start|stop|reload|restart|force-reload}"