blob: c9a026f739df07660a4fe38a20253aa24d73fdb9 (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/lighttpd: start/stop lighttpd daemon
4 #
5
6 case $1 in
7 start)
8 /usr/sbin/lighttpd -f /etc/lighttpd.conf
9 ;;
10 stop)
11 rm -f /var/run/lighttpd.pid
12 killall -q /usr/sbin/lighttpd
13 ;;
14 restart)
15 $0 stop
16 sleep 2
17 $0 start
18 ;;
19 *)
20 echo "usage: $0 [start|stop|restart]"
21 ;;
22 esac
23
24 # End of file
|