What is daemon process. Highlight its features .
A daemon is a long-running background process that answers requests for services. The term originated with Unix, but most operating systems use daemons in some form or another. In Unix, the names of daemons conventionally end in "d". Some examples include inetd
, httpd
, nfsd
, sshd
, named
, and lpd
.
Daemons are processes that are often started when the system is bootstrapped and terminate only when the system is shut down. Because they don’t have a controlling terminal, they run in the background. UNIX systems have numerous daemons that perform day-to-day activities.
In simple language it's a process which continuously runs on your system till user specifically kills it. There are two ways to start this process.
1. User can manually start this daemon to run
2. We can initialize this daemon in init scripts supported by Linux which are run at the time of system start and runs continuously till user specifically kills the daemon or system itself stops.
Daemon Process
Feature of daemons
Notes
setsid
. Most of the user-level daemons are process group leaders and session leaders, and are the only processes in their process group and session. (The one exception is rsyslogd
.)init
process.