Life is short, enjoy every movement (TM)
Random header image... Refresh for more!

Removing Unwanted Startup Debian Files or Services

Under Debian Linux ( and most other distros) startup files are stored in /etc/init.d/ directory and symbolic linked between /etc/rcX.d/ directory exists. Debian Linux (Red Hat/ Fedora) uses System V initialization scripts to start services at boot time from /etc/rcX.d/ directory. Debian Linux comes with different utilities to remove unwanted startup file:

(A) rcconf
It is a console based interactive utility that allows you to control which services are started when the system boots up or reboots. It displays a menu of all the services which could be started at boot. The ones that are configured to do so are marked and you can toggle individual services on and off. To start rconf, login as root user and type rcconf
# rcconf


Debian rcconf - a console based utility to control startup services

Select the service you would like to enable or disable.

(B) sysv-rc-conf is yet another tool for for SysV like init script links under Debian Linux. To start sysv-rc-conf, login as root user and type sysv-rc-conf:
# sysv-rc-conf


Debian sysv-rc-conf - a console based advanced utility to control startup services

Select the service you would like to enable or disable.

Both sysv-rc-conf and rcconf are best tools to use on Remote Debian Linux or when GUI is not available, they are just like ntsysv command under Red Hat Linux.

(C) You can also use update-rc.d script as follows (update-rc.d removes any links in the /etc/rcX.d directories to the script /etc/init.d/service):
# update-rc.d -f {SERVICE-NAME} remove

For example to stop xinetd service at boot time, type the command as follows:
# update-rc.d -f xinetd remove

Related posts (skip to comment)

5 comments

1 Sch1z0 { 12.03.05 at 12:50 pm }

well i googled rcconf configure and reached here…. what i need is to speed up starting of comp so can you tell me which services are unnecessary ?

2 Administrator { 12.05.05 at 6:36 am }

It depends upon your applications. For example if you run web server then you only need

httpd (80)
mysql
sshd
mail service
syslogd
klogd
cron

Rest of the service can be disabled for example
lpd (printing service)
autofs (until and unless you wanna mount something remotely or locally)
dbus-1 ( manages certificate revocation lists)
portmap, rpc services, nfs server (for unix to unix/linux file sharing)
telnetd, relogin, rexec (all insecure remote login service, it is better to use ssh)
inetd or xinetd (disabled all those r services, finger, time etc)
named (Do you need your own dedicated name server?)

All create a firewall, to accept service according to your server services

3 Sch1z0 { 12.06.05 at 7:17 pm }

thanks dude, i appreciate your concern

4 nachiappan { 11.20.07 at 5:09 pm }

i have installed rcconf and i want to remove HP printing process as i don’t have a printer
can u help me in detail about disabling a process using rcconf.

5 casaannonce ma { 11.19.08 at 8:37 am }

I have linspire linux, these commands did not work for me.

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , , , , , , , , , ,