I am running Ubuntu 12.04.3 LTS and installed several services like Samba, DHCP server, ...
I receive the following warning when I run "halt now", "telinit 6" or similar:
Since the script you are attempting to invoke has been converted
to an Upstart job, you may also use the...
I can see that the affected services try to stop/start twice. Once through the Upstart job and again through the S/K symlinks in the /etc/rcN.d folder which target the init.d script. Probably I can simply remove the symlink in the /etc/rcN.d folder.
Example flow:
- Run 'halt now' from shell
- Upstart stops Samba (because there is a Upstart conf file for Samba)
- SysV tries to stop Samba again (because there is also a /etc/rc0.d/K20smbd symlink)
I don't understand/want step 3 as it seems unnecessary and shows an ugly warning.
Why are there both, the Upstart script and and the symlinks to the init.d script, for several daemons? Is it the correct way that I have to manually clean up the duplicate symlinks in each /etc/rcN.d folder?