debianutils: bump to version 4.8.1
[buildroot-gz.git] / package / nginx / S50nginx
blobb2f8b808550695d13976fb349d5aef7ce2f74c0e
1 #!/bin/sh
3 # Start/stop nginx
6 PIDFILE=/var/run/nginx.pid
8 case "$1" in
9 start)
10 echo "Starting nginx..."
11 mkdir -p /var/log/nginx /var/tmp/nginx
12 start-stop-daemon -S -x /usr/sbin/nginx -p $PIDFILE
14 stop)
15 printf "Stopping nginx..."
16 start-stop-daemon -K -o -p $PIDFILE
18 restart|reload)
19 "$0" stop
20 "$0" start
23 echo "Usage: $0 {start|stop|restart}"
24 exit 1
25 esac