Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

daemon directive. what does it do?

Status
Not open for further replies.

gerald

Programmer
Apr 10, 2000
152
US
Hi, I was just wondering if maybe somebody could answer this for me, as I haven't been able to find any reference to it yet.<br><br>In startup scripts on Linux there is something like<br>'daemon httpd'<br><br>I was wanting to know exactly what the 'daemon' directive does as opposed to just running the httpd executable, if anything.<br><br>Thanks in advance for any light you could shed on this for me.<br><br><br>Gerald
 
If you look a little earlier on in the startup scripts you will see something like:<br><FONT FACE=monospace><br>. /etc/rc.d/init.d/functions<br></font><br>This is a file that contains common environment variables and shell functions.&nbsp;&nbsp;&quot;daemon&quot; is a shell function defined in this file.&nbsp;&nbsp;The function just runs various commands to start the named program up as a &quot;daemon&quot; program.<br><br>Hope this helps. <p> <br><a href=mailto: > </a><br><a href= > </a><br>--<br>
0 1 - Just my two bits
 
Thank you, that was very helpful....<br><br>-Gerald<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top