Corks

Boot Script for Nginx on Ubuntu, Debian etc.

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.

Gist 33062

Update 12/10/07: Fixed extra space (Thanks, angelpopov)

5 comments