bump version
[buildroot.git] / package / lighttpd / rc.lighttpd
blob837e074e8bf433cfb3d54ddf93a5796e2f218087
1 #!/bin/sh
3 # Starts lighttpd
6 umask 077
8 start() {
9 echo -n "Starting lighttpd: "
10 start-stop-daemon --start --quiet --make-pidfile --pidfile /var/run/lighttpd.pid -b --exec /usr/sbin/lighttpd -- -f /etc/lighttpd/lighttpd.conf -D
11 echo "OK"
13 stop() {
14 echo -n "Stopping lighttpd: "
15 start-stop-daemon --stop --quiet --pidfile /var/run/lighttpd.pid
16 echo "OK"
18 restart() {
19 stop
20 start
23 case "$1" in
24 start)
25 start
27 stop)
28 stop
30 restart|reload)
31 restart
34 echo "Usage: $0 {start|stop|restart}"
35 exit 1
36 esac
38 exit $?