LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   chkconfig equivalent debian (https://www.linuxquestions.org/questions/debian-26/chkconfig-equivalent-debian-346901/)

biophysics 07-26-2005 08:09 AM

chkconfig equivalent debian
 
Hi Gurus

I am new to debian.

I use chkconfig --del <service name> in SuSE to stop a service. What is the equivalent to stop a service **permanently** in debian (sarge)

(I want to stop sshd)

Many thanks

darkleaf 07-26-2005 08:52 AM

If you don't need the service you can simply delete the package for it. If that's to much you can look in /etc/init.d where the startup scripts for programs are.

harken 07-26-2005 09:12 AM

Or a more elegant way would be using the 'update-rc.d' command which allows you to add/remove/set the symlinks in /etc/rc*.d that point to scripts in /etc/init.d.
To remove a script that starts a certain service run
Code:

update-rc.d -f script_name remove
then you can keep or delete the corresponding script in /etc/init.d/


All times are GMT -5. The time now is 09:13 PM.