How do I choose which way to enable/disable, start/stop, or check the status of a service?
- by Glyph
If I want to start a system installed service, I can do:
# /etc/init.d/some-svc start
# initctl start some-svc
# service some-svc start
# start some-svc
If I want to disable a service from running at boot, I can do:
# rm /etc/rc2.d/S99some-svc
# update-rc.d some-svc disable
# mv /etc/init/some-svc.conf /etc/init/some-svc.conf.disabled
Then…