Couldn’t find a working startup script for nginx on Ubuntu, so I cobbled one together. This is principally based on the Lighttpd startup script and supports Start, Stop, Reload and friends. Works reliably on my Ubuntu Edge install, but should work on most other distros as well. Drop me a note if it worked on your distro, so I can update the comments.
If you custom-configured nginx, make sure to update the DAEMON (the binary) and CONFIG_FILE variables to reflect your settings.
Update 12/10/07: Fixed extra space (Thanks, angelpopov)

Comments
fritzie on October 4th 2007 15:46
angelpopov on October 14th 2007 20:59
Achim on December 21st 2007 17:15
louis on February 1st 2008 22:09
Dan Dascalescu on December 28th 2008 20:30
Write a Comment