Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Service not starting after reboot

Tags:

ubuntu

service

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.

like image 539
pg2286 Avatar asked Mar 27 '12 16:03

pg2286


1 Answers

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.