Advertisement
Guest User

Nginx /etc/init.d/nginx error

a guest
Feb 26th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | None | 0 0
  1. # WAS (broken)
  2. start() {
  3.                 start-stop-daemon --start --quiet --pidfile $PID \
  4.                         --retry 5 --exec $DAEMON --oknodo -- $DAEMON_OPTS
  5. }
  6.  
  7. stop() {
  8.                 start-stop-daemon --stop --quiet --pidfile $PID \
  9.                         --retry 5 --oknodo --exec $DAEMON
  10. }
  11.  
  12. # NOW (working)
  13. start() {
  14.                 start-stop-daemon --start --quiet --pidfile $PID \
  15.                         --retry --exec $DAEMON --oknodo -- $DAEMON_OPTS
  16. }
  17.  
  18. stop() {
  19.                 start-stop-daemon --stop --quiet --pidfile $PID \
  20.                         --retry --oknodo --exec $DAEMON
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement