There seems to be no definitive solution for this, either in Ubuntu's official documentation or other sources of information.
In some places systemctl is suggested but I think Ubuntu does not support it for the moment.
Other suggestions include manually creating the links, but I feel there should be a better way. On the other hand there are graphical programs to achieve this, but what about servers without GUI?
In Fedora I don't think this is an issue. You can use chkconfig to add/remove a service from the startup sequence.
The equivalent of chkconfig for Ubuntu seems update-rc.d, but:
# update-rc.d modemmanager enable
update-rc.d: /etc/init.d/modemmanager: file does not exist
Since Ubuntu is the most used GNU/Linux distribution, I believe there must be a way to do this in the command line with a specific command.
echo manual | sudo tee /etc/init/modemmanager.override
working for you? – lemonslice Aug 04 '15 at 15:13chkconfig modemmanager on
. – João M. S. Silva Aug 04 '15 at 15:35$ cat /etc/init/modemmanager.override manual $ service modemmanager status modemmanager stop/waiting
. Should I replace "manual" with "auto" or so? – João M. S. Silva Aug 04 '15 at 15:45service modemmanager start
from/etc/rc.local
which seems a bad and dirty solution... – João M. S. Silva Aug 04 '15 at 16:18sudo service modemmanager stop
to stop temporarily, or edit/move the appropriate file in/etc/init
folder – Sergiy Kolodyazhnyy Aug 07 '15 at 07:32