PDA

View Full Version : How do disable services


freemanen
March 1st, 2005, 12:14 PM
for example if sendmail is runing how do i get it not to run?

Juergen
March 1st, 2005, 01:01 PM
For each runlevel x you have a link in /etc/rcx.d to a script in /etc/init.d for the services that are to start/stop when entering this runlevel.
(Links beginning with S start, those beginning with K stop a service)

You could just remove these links.

If you don't want to do it manually look at (man) 'update-rc.d', and/or install rcconf which is a frontend for update-rc.d

alastair
March 1st, 2005, 03:11 PM
Use :

update-rc.d

see : man update-rc.d

e.g.

update-rc.d -f sendmail remove

This removes the links.