durga ch
durga ch
Communications
29 Jan 2009

What are daemon processes

i know what are foreground processes and back ground processes and daemons specifically being back ground processes.

So what distinguishes a normal back ground process to a daemon process?
babloo0311

babloo0311

Branch Unspecified
29 Jan 2009
hello durga,

Usually a background process refers to a process put in the background
by a shell but which it can still reach and e.g. bring to
the foreground again. A deamon usually runs with no association
to a user/interactive shell or in relation to other non-background
processes..

a daemon has no associated tty and no parent
A daemon is a kind of persistant background process
durga ch

durga ch

Communications
30 Jan 2009
hmm

so I can put it this way?
a user started shell script in abck ground as nohup... is a back ground process but the back ground process satrted up by root can be called and daemons which have no particular access and they run until the terminal is closed ?
babloo0311

babloo0311

Branch Unspecified
30 Jan 2009
A daemon necessarily is no longer associated with the terminal, and for example will not die if the login process it traced back to no longer exists. It most likely also does a chdir(2), and might even do chroot(2). It should also do things like put an
appropriate file into /var/run, and perhaps write to syslog too.
babloo0311

babloo0311

Branch Unspecified
30 Jan 2009
deamon process is a system process which u have almost no control over it is created by init while system boots of by orphanning a foreground process background process is any process which doesnt have active terminal acccess
durga ch

durga ch

Communications
30 Jan 2009
hmm

that explains!! 😀
thanks.. will get back inc ase of any more issues 😁
babloo0311

babloo0311

Branch Unspecified
30 Jan 2009
well fine durga . i will also collect some more information about this.

Share this content on your social channels -

Only logged in users can reply.