I'm running Ubuntu 12.04
and Nginx 1.2.1
which I compiled from source. I tried the below commands to get nginx
to start on boot:
$ sudo update-rc.d nginx default
$ sudo update-rc.d nginx enable 2345
In both cases I'm getting the following error:
update-rc.d: warning: nginx start runlevel arguments (none) do not match LSB Default-Start values (2 3 4 5)
update-rc.d: warning: nginx stop runlevel arguments (none) do not match LSB Default-Stop values (0 1 6)
What I don't understand is that my /etc/init.d/nginx
script seems to have the proper init information:
#!/bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
### END INIT INFO
What do I need to change for the update-rc.d
command to function?