Tuesday, July 10, 2007

managing system services/daemons

on a debian system, the scripts to start and stop the system's services/daemons reside in /etc/init.d/ . For example, to stop the bittorrent service execute the following at the command line:

>/etc/init.d/bittorrent stop

to start the bittorrent service, execute the following at the command line:

>/etc/init.d/bittorrent start


what if the package apache2 is installed on my system, but i don't want that service to be started when the machine boots.

the command update-rc.d manages the links between the /etc/rc#.d directories and the scripts in the /etc/init.d directory. to enable a service on boot execute the following at the command line:

>update-rc.d "serviceName" defaults

to disable a service on boot execute the following at the command line:

>update-rc.d -f "serviceName" remove

No comments: