Originally Posted by
aresnick
Everything seems to go swimmingly 'til I try to start nginx:
Code:
foo@bar:/usr/local/nginx/sbin$ sudo /etc/init.d/nginx start
Starting nginx: start-stop-daemon: Unable to start /usr/sbin/nginx: No such file or directory (No such file or directory)
nginx.
I installed nginx from the normal repo, added your repos to sources.list, ran apt-get update, then aptitude safe-upgrade. The upgrade completed, and when I try to start nginx, I get the above error.
Running Jaunty on x86_64.
Any pointers would be appreciated. Thanks!
-a.
The new nginx executable is located somewhere else, just run 'ln -s /usr/local/nginx/sbin/nginx /usr/sbin/nginx' and you'll be able to start it again.
I would also place this in '/etc/init.d/nginx', so you can upgrade to newer versions of nginx without downtime.
Code:
upgrade)
echo -n "Upgrading $DESC: "
# See http://wiki.nginx.org/NginxCommandLine for details
# First, start a new process running the new binary
kill -USR2 `cat /var/run/nginx.pid`
sleep 1
# Next, kill the old worker processes
kill -WINCH `cat /var/run/nginx.pid.oldbin`
sleep 1
# Next, kill the old master processe
kill -QUIT `cat /var/run/nginx.pid.oldbin`
echo "$NAME."
;;
Bookmarks