1
0
forked from ports/contrib
contrib-tek/thttpd/thttpd.rc

24 lines
276 B
Plaintext
Raw Normal View History

2006-11-14 09:01:22 +10:00
#!/bin/sh
#
# /etc/rc.d/thttpd: start/stop thttpd daemon
#
case $1 in
start)
2008-11-27 19:30:46 +01:00
/usr/sbin/thttpd -C /etc/thttpd.conf
;;
2006-11-14 09:01:22 +10:00
stop)
2008-11-27 19:30:46 +01:00
killall -q /usr/sbin/thttpd
;;
2006-11-14 09:01:22 +10:00
restart)
2008-11-27 19:30:46 +01:00
$0 stop
sleep 2
$0 start
;;
2006-11-14 09:01:22 +10:00
*)
2008-11-27 19:30:46 +01:00
echo "usage: $0 [start|stop|restart]"
;;
2006-11-14 09:01:22 +10:00
esac
# End of file