6 PIDFILE
=/var
/run
/nginx.pid
10 echo "Starting nginx..."
11 mkdir
-p /var
/log
/nginx
/var
/tmp
/nginx
12 start-stop-daemon
-S -x /usr
/sbin
/nginx
-p $PIDFILE
15 printf "Stopping nginx..."
16 start-stop-daemon
-K -o -p $PIDFILE
23 echo "Usage: $0 {start|stop|restart}"