Service does not start after reboot

I installed nginx and gunicorn and moved the scripts to the / etc / init.d / folder in ubuntu. However, for some reason, even after using update-rc.d -f nginx, by default the service does not start when the server restarts.

However, it starts without problems manually /etc/init.d/nginx start

This is Linux version: 3.0.0-15-server ubuntu release: 11.10

I even checked log / var / log / boot.log and there is nothing about any error in it.

+6
source share
3 answers

The command to add symbolic links to the default service:

update-rc.d foobar defaults 

Adapted from the man page update-rc.d (man update-rc.d)

0
source

sysv-rc-conf then find your service and enable it for all desired runlevels.

0
source

These services were run upstart for me on Ubuntu 12.04, which corresponded to files like /etc/init/nginx.conf .

The problem was that, for some reason, the start stanza was commented out in the .conf file:

 #start on runlevel [2345] 

Disarmament has resolved this for me.

0
source

Source: https://habr.com/ru/post/911777/


All Articles