I have installed nginx and gunicorn and have moved the scripts in /etc/init.d/ folder in ubuntu . However for some reason even after using update-rc.d -f nginx defaults the service is not starting on server reboot.
However it starts with no problem manually /etc/init.d/nginx start
This is the Linux Version: 3.0.0-15-server ubuntu release: 11.10
I even checked the log /var/log/boot.log and there is nothing in it with regards to any error.
Those services were managed by upstart for me on Ubuntu 12.04, corresponding therefore to files of type /etc/init/nginx.conf
.
The problem was that for some reason, in the .conf
file the start
stanza was commented out:
#start on runlevel [2345]
Uncommenting solved it for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With