python-pathvalidate: bump version to 0.14.1
[buildroot-gz.git] / package / lighttpd / S50lighttpd
blobb3518cd278ce4bf9c7d3946015619f470c4802e0
1 #!/bin/sh
3 # Starts lighttpd.
5 NAME=lighttpd
6 DAEMON=/usr/sbin/$NAME
7 PID_FILE="/var/run/$NAME.pid"
8 CONF_FILE="/etc/$NAME/$NAME.conf"
10 [ -r /etc/default/$NAME ] && . /etc/default/$NAME
12 start() {
13 printf "Starting lighttpd: "
14 start-stop-daemon -S -q -p $PID_FILE --exec $DAEMON -- -f $CONF_FILE
15 echo "OK"
17 stop() {
18 printf "Stopping lighttpd: "
19 start-stop-daemon -K -q -p $PID_FILE
20 echo "OK"
22 restart() {
23 stop
24 start
27 case "$1" in
28 start)
29 start
31 stop)
32 stop
34 restart|reload)
35 restart
38 echo "Usage: $0 {start|stop|restart}"
39 exit 1
40 esac
42 exit $?