What is a daemon process? | Unix Linux Forums | Programming

  Go Back    


Programming Post questions about C, C++, Java, SQL, and other programming languages here.

What is a daemon process?

Programming


Tags
daemon, daemon process

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-27-2002
Kanu77 Kanu77 is offline
Registered User
 
Join Date: Feb 2002
Last Activity: 8 July 2002, 6:48 AM EDT
Location: Ireland
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Tools What is a daemon process?

This is gonna seem really silly to almost evryone here - but I need to know :

what is a daemon process?

Thanks
Sponsored Links
    #2  
Old 02-27-2002
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 23 July 2014, 9:48 AM EDT
Location: Ashburn, Virginia
Posts: 9,894
Thanks: 56
Thanked 413 Times in 248 Posts
A daemon process has no controlling terminal. It cannot open /dev/tty. If you do a "ps -ef" and look at the tty field, all daemons will have a ? for the tty.

Most daemons tend to last a long time, be owned by root, and do something useful. But you really can't count on any of these thing being true.

The lack of a controlling terminal is the real defining characteristic.
The Following User Says Thank You to Perderabo For This Useful Post:
phanthaihuan (06-26-2013)
Sponsored Links
    #3  
Old 02-27-2002
Kanu77 Kanu77 is offline
Registered User
 
Join Date: Feb 2002
Last Activity: 8 July 2002, 6:48 AM EDT
Location: Ireland
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
MySQL So what you mean is....

So bacically, they are a typoe of monitor process but dont actually do anything..... Or am I way off the mark here????
    #4  
Old 02-27-2002
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 23 July 2014, 9:48 AM EDT
Location: Ashburn, Virginia
Posts: 9,894
Thanks: 56
Thanked 413 Times in 248 Posts
You're way off the mark. Asking what a daemon does in like asking what a program does....the answer depends on the specific example.

cron, inetd, syslogd all run as daemons and they do a lot. But it is easy to write a daemon that does nothing but just monitor something. It's also easy to write a daemon that does nothing at all.
Sponsored Links
    #5  
Old 03-07-2002
johnsonmj johnsonmj is offline
Registered User
 
Join Date: Mar 2002
Last Activity: 8 March 2002, 1:27 AM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
A second explanation, not as detailed

For simple unix programmers like me, a daemon is just a process that runs in the background, usually waiting for something to happen that it is capable of working with, like a printer daemon is waiting for print commands.
Sponsored Links
    #6  
Old 03-07-2002
Kanu77 Kanu77 is offline
Registered User
 
Join Date: Feb 2002
Last Activity: 8 July 2002, 6:48 AM EDT
Location: Ireland
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
MySQL Daemons.....

Cheers guys - that explains the daemon issue for me....
Sponsored Links
    #7  
Old 03-08-2002
rwb1959's Avatar
rwb1959 rwb1959 is offline
Registered User
 
Join Date: Aug 2001
Last Activity: 16 October 2009, 2:04 PM EDT
Location: Virginia, USA
Posts: 438
Thanks: 0
Thanked 1 Time in 1 Post
This paper may help give you some more
insights into daemon process programming...

Moderator's Comments:
Link below does not work after all these years.

http://skywalker.mis.boun.edu.tr/~karakas/daemon.php
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Daemon process sundaresh Programming 4 09-26-2013 04:59 AM
Diff between Bg and daemon process kkl Shell Programming and Scripting 3 12-16-2010 05:08 AM
daemon process suresh_rupineni Linux 1 08-21-2006 02:14 AM
zombie daemon process!! rish2005 UNIX for Advanced & Expert Users 1 11-25-2005 08:59 AM
Daemon process s_chordia Programming 2 01-17-2002 01:09 PM



All times are GMT -4. The time now is 09:57 AM.