I have installed nginx on my Ubuntu 10.04 box. With passenger 3.
Now I've got everything setup correctly; how do I ensure that nginx will start on boot everytime?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
If you installed from the deb package using
apt-get then you should be good to go.
Otherwise, the way to do this is to create a startup script. Likely nginx already has one created for just such a purpose, although you could create one if you really wanted to.
These scripts go into
/etc/init.d and are run by the startup process. Using
chkconfig helps to enable or disable these scripts, controlling whether things start or not (but leaving the script in place).
However, in Ubuntu, this has largely been replaced by Upstart which is a whole different way of doing things.