Nginx Service Scripts do not work after update?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nginx |
Fix Released
|
High
|
Michael Lustfield |
Bug Description
After a recent update on an ubuntu server system, using the : "deb http://
When I do
# /etc/init.d/nginx stop
I get:
Stopping nginx: start-stop-daemon: invalid schedule item (must be [-]<signal-name>, -<signal-number>, <timeout> or 'forever'
Try 'start-stop-daemon --help' for more information.
# /etc/init.d/nginx restart
Restarting nginx: nginx: invalid option: "/var/run/
nginx.
The versions of nginx installed is:
nginx-common/lucid uptodate 1.2.2-0ubuntu0p
nginx-full/lucid uptodate 1.2.2-0ubuntu0p
Best Regards,
Changed in nginx: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Michael Lustfield (michaellustfield) |
Changed in nginx: | |
status: | In Progress → Fix Committed |
Hello all,
The retry needs a parameter (in example I have said 5 seconds)... in both stop and restart| force-reload case statements.
In the restart| force-reload the --pidfile argument does not have the pid location (instead it have retry argument)
Will work:
/etc/init.d/nginx
...
stop)
echo -n "Stopping $DESC: "
start- stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid --retry 5 \
--exec $DAEMON || true
echo "$NAME."
;;
# Check if the ULIMIT is set in /etc/default/nginx
if [ -n "$ULIMIT" ]; then
fi
;;
Thanks,
Chris