Hi tried to add my nagios service to the runlevel 1-5 (or at least 2). But when I used the command
sudo update-rc.d nagios default
I received the error
update-rc.d: warning: /etc/init.d/nagios missing LSB keyword 'default-start'
update-rc.d: warning: /etc/init.d/nagios missing LSB keyword 'default-stop'
usage: update-rc.d [-n] [-f] <basename> remove
update-rc.d [-n] <basename> defaults [NN | SS KK]
update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
-n: not really
-f: force
The disable|enable API is not stable and might change in the future.
Since there are only symbolic links in the /etc/rc2.d folder my next idea would be to just simple create a symbolic link to the binary. But I am not sure if this is a good idea since there must be a reason for a existing update-rc.d program?
I am using Ubuntu 14.04.
sudo update-rc.d thruk defaults
but with the nagios service I still get the LSB error. – user3772108 May 04 '15 at 08:45