Difference between revisions of "Ubuntu runlevel service startup"
From thelinuxwiki
(Pushed from Themanclub.) |
|||
Line 3: | Line 3: | ||
update-rc.d automatically updates the System V style init script links /etc/rcrunlevel.d/NNname to scripts /etc/init.d/name. These are run by init when changing runlevels and are generally used to start and stop. For example turn on ssh service type the command: | update-rc.d automatically updates the System V style init script links /etc/rcrunlevel.d/NNname to scripts /etc/init.d/name. These are run by init when changing runlevels and are generally used to start and stop. For example turn on ssh service type the command: | ||
− | # update-rc.d ssh | + | # '''update-rc.d ssh defaults''' |
− | + | OR | |
+ | $ '''sudo update-rc.d ssh defaults | ||
+ | ''' | ||
Again use update-rc.d command: | Again use update-rc.d command: | ||
− | # update-rc.d SERVICE-NAME remove | + | # '''update-rc.d SERVICE-NAME remove''' |
[[category:ubuntu]] | [[category:ubuntu]] |
Latest revision as of 22:30, 12 February 2016
Command line tool to manage services / Ubuntu runleve
l
update-rc.d automatically updates the System V style init script links /etc/rcrunlevel.d/NNname to scripts /etc/init.d/name. These are run by init when changing runlevels and are generally used to start and stop. For example turn on ssh service type the command:
# update-rc.d ssh defaults
OR
$ sudo update-rc.d ssh defaults
Again use update-rc.d command:
# update-rc.d SERVICE-NAME remove