Enabling or disabling service on startup in debian

From Notes_Wiki
Revision as of 06:52, 31 March 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > Debian > Enabling or disabling service on startup in debian

To enable a service on start-up, assuming /etc/init.d/<service> file exists use:

update-rc.d <service_name> defaults

To disable a service from start-up use:

update-rc.d <service_name> remove

A ncurses based tool named 'rcconf' can be used to get interface equivalent to 'setup' for configuring start-up applications.


Steps have been learned from http://knowledgelayer.softlayer.com/learning/how-start-applications-boot-debian




Home > Debian > Enabling or disabling service on startup in debian