Differences between revisions 20 and 21
Revision 20 as of 2011-07-03 00:39:55
Size: 2171
Comment:
Revision 21 as of 2011-07-03 00:45:48
Size: 2201
Comment: clean up
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
A [[http://en.wikipedia.org/wiki/Daemon_(computing)|daemon]], or service, is a background process usually started during the initial boot sequence by [[init]]. Daemons typically run independent of users, waiting for events to occur and providing services. Some common daemons include: A [[http://en.wikipedia.org/wiki/Daemon_(computing)|daemon]], or service, is a background process usually started during the initial boot sequence by [[init]]. Daemons typically run independent of users, waiting for system events to occur and providing services in response. Some common daemons include:
Line 7: Line 7:
 * [[acpid]] - listens for power management events and triggers scripts based on them)  * [[acpid]] - listens for power management events and executes scripts based on them
Line 13: Line 13:
== Daemons under Debian ==
Debian makes use of [[http://en.wikipedia.org/wiki/Init#SysV-style|System V]]-style init scripts for daemon management, allowing daemons to run conditionally, based on the current RunLevel of the computer. For example, a daemon can be configured to run only when the computer is in single-user mode (runlevel 1) or, more commonly, when in multi-user mode (runlevels 2-5). For more information, see RunLevel.
 
== Debian daemon configuration ==
''Note: Many daemons provide essential services to a working Debian installation; others can pose as unnecessary security risks when enabled. Caution should be used whenever managing daemons. When in doubt, refer to the documentation of the daemon itself.''
 
== Managing daemons in Debian ==
Debian makes use of [[http://en.wikipedia.org/wiki/Init#SysV-style|System V]]-style init scripts for daemon management. This allows daemons to operate conditionally, based on the current RunLevel of the computer. For example, a daemon can be configured to run only when the computer is in single-user mode (runlevel 1) or, more commonly, when in multi-user mode (runlevels 2-5). For more information, see RunLevel.

== Daemon configuration ==
''Note: Many daemons provide essential services to a working Debian installation; others can pose unnecessary security risks when enabled carelessly. Caution should be used whenever managing daemons. When in doubt, refer to the documentation of the daemon itself.''

Translation(s): English


A daemon, or service, is a background process usually started during the initial boot sequence by ?init. Daemons typically run independent of users, waiting for system events to occur and providing services in response. Some common daemons include:

  • sshd - listens for and manages incoming ?SSH connections

  • acpid - listens for power management events and executes scripts based on them

  • apache - provides a local HTTP web server

Managing daemons in Debian

Debian makes use of System V-style init scripts for daemon management. This allows daemons to operate conditionally, based on the current RunLevel of the computer. For example, a daemon can be configured to run only when the computer is in single-user mode (runlevel 1) or, more commonly, when in multi-user mode (runlevels 2-5). For more information, see RunLevel.

Daemon configuration

Note: Many daemons provide essential services to a working Debian installation; others can pose unnecessary security risks when enabled carelessly. Caution should be used whenever managing daemons. When in doubt, refer to the documentation of the daemon itself.

Start, stop and reload daemons

The easiest way to manually (and temporarily) start, stop or reload a daemon is to run the following in a terminal as root:

# /etc/init.d/daemonname [stop|start|restart]

Controlling daemons in this manner is temporary and will not survive a reboot. Refer to the next section to manage daemons on a more permanent basis.

Enable/disable daemons

See also