LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-09-2007, 07:08 AM   #1
mallikk_in
Member
 
Registered: Jun 2006
Posts: 34

Rep: Reputation: 15
daemon process


what is the use of daemon process and how to make it as foreground process?
waiting for your reply..............
 
Old 05-09-2007, 07:17 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Sounds suspiciously like a test question. You might want to do your own homework.
 
Old 05-09-2007, 07:49 AM   #3
mallikk_in
Member
 
Registered: Jun 2006
Posts: 34

Original Poster
Rep: Reputation: 15
In my interview they asked me.thats why iam asking pls help me.i tried but i couldn't able to find out.
 
Old 05-09-2007, 08:20 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
A daemon is a background process that waits for work to do. Typically it LISTENs on a specific port and when it gets a request does whatever it is designed for.

Some examples:
sendmail = Waits for requests to do mail
sshd = Waits for ssh (user login/command) requests
nfsd = Waits for requests from remote hosts to allow filesystems to be mounted from local host to remote host.

xinetd (or inetd) = Specialized daemon that is configured to listen for other items that you don't want running as daemons of their own. Some daemons have low usage so there is no reason to eat up CPU by running them all the time. By having xinetd LISTEN for their ports it can be used to only start the daemon when it knows there is a request for it. An example would be ftpd. ftpd is designed for allowing remote users to connect and transfer files. There is no reason for ftpd to be running all the time on most servers so it would typically only be started via xinetd (or inetd).

Most daemons are started at your boot up by init scripts. If you didn't start it from terminal you can't really bring it into the foreground later. You can actually start things as daemons from the command line by backgrounding them. This is done by putting "&" at the end of the command line. Also for such backgrounded processes to stay running after you log out of the terminal you would have to use the "nohup" command at the start of the command line. If you did background a job at command line you can bring it back to the foreground by using fg.

The following commands will give you more information:
man bash
Look at "fg", "bg", background in that man page.

man nohup
 
Old 05-09-2007, 08:49 AM   #5
mallikk_in
Member
 
Registered: Jun 2006
Posts: 34

Original Poster
Rep: Reputation: 15
thankyou very much for your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
something is killing my daemon process KM3 Linux - General 1 10-23-2006 10:43 AM
start-stop-daemon problems after process crash emarti20 Linux - Software 3 04-15-2005 08:54 AM
unknown daemon process swmok Linux - Software 2 01-04-2005 11:10 PM
How can i attach gdb to a daemon process praveengujar Linux - General 0 08-11-2004 06:58 AM
Help, daemon process failed! Joran Linux - Networking 2 08-03-2003 05:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration