<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Deamon and Process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/deamon-and-process/m-p/4212703#M326409</link>
    <description>Hi Sumit,&lt;BR /&gt;&lt;BR /&gt;Daemon:- a daemon (pronounced /Ë diË mÉ n/ or /Ë deÉªmÉ n/[1]) is a computer program that runs in the background, rather than under the direct control of a user; they are usually initiated as background processes. Typically daemons have names that end with the letter "d": for example, syslogd, the daemon that handles the system log, or sshd, which handles incoming SSH connections.&lt;BR /&gt;&lt;BR /&gt;In a Unix environment, the parent process of a daemon is often (but not always) the init process (PID=1). Processes usually become daemons by forking a child process and then having their parent process immediately exit, thus causing init to adopt the child process. This is a somewhat simplified view of things as other operations are generally performed, such as disassociating the daemon process from any controlling tty. Convenience routines such as daemon(3) exist in some UNIX systems for that purpose.&lt;BR /&gt;&lt;BR /&gt;Systems often start (or "launch") daemons at boot time: they often serve the function of responding to network requests, hardware activity, or other programs by performing some task.&lt;BR /&gt;&lt;BR /&gt;Process:- In computing, a process is an instance of a computer program that is being sequentially executed by a computer system that has the ability to run several computer programs concurrently.&lt;BR /&gt;&lt;BR /&gt;A computer program itself is just a passive collection of instructions, while a process is the actual execution of those instructions. Several processes may be associated with the same program; for example, opening up several windows of the same program typically means more than one process is being executed. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=85269" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=85269&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Asif Sharif</description>
    <pubDate>Mon, 09 Jun 2008 03:35:39 GMT</pubDate>
    <dc:creator>Asif Sharif</dc:creator>
    <dc:date>2008-06-09T03:35:39Z</dc:date>
    <item>
      <title>Deamon and Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deamon-and-process/m-p/4212701#M326407</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Can anybody tell me what is the difference between a Deamon and Process and also tell me is to possible to create a Deamon manually.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks with regards,</description>
      <pubDate>Mon, 09 Jun 2008 01:55:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deamon-and-process/m-p/4212701#M326407</guid>
      <dc:creator>tayal_sumit</dc:creator>
      <dc:date>2008-06-09T01:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deamon and Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deamon-and-process/m-p/4212702#M326408</link>
      <description>A demon is just a process set up in a special way.  I.e. stdio/stdout/stderr is redirected, most often to /dev/null.  It is also setup so SIGHUP won't kill it.  See this link:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=206245" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=206245&lt;/A&gt;</description>
      <pubDate>Mon, 09 Jun 2008 02:00:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deamon-and-process/m-p/4212702#M326408</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-09T02:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Deamon and Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deamon-and-process/m-p/4212703#M326409</link>
      <description>Hi Sumit,&lt;BR /&gt;&lt;BR /&gt;Daemon:- a daemon (pronounced /Ë diË mÉ n/ or /Ë deÉªmÉ n/[1]) is a computer program that runs in the background, rather than under the direct control of a user; they are usually initiated as background processes. Typically daemons have names that end with the letter "d": for example, syslogd, the daemon that handles the system log, or sshd, which handles incoming SSH connections.&lt;BR /&gt;&lt;BR /&gt;In a Unix environment, the parent process of a daemon is often (but not always) the init process (PID=1). Processes usually become daemons by forking a child process and then having their parent process immediately exit, thus causing init to adopt the child process. This is a somewhat simplified view of things as other operations are generally performed, such as disassociating the daemon process from any controlling tty. Convenience routines such as daemon(3) exist in some UNIX systems for that purpose.&lt;BR /&gt;&lt;BR /&gt;Systems often start (or "launch") daemons at boot time: they often serve the function of responding to network requests, hardware activity, or other programs by performing some task.&lt;BR /&gt;&lt;BR /&gt;Process:- In computing, a process is an instance of a computer program that is being sequentially executed by a computer system that has the ability to run several computer programs concurrently.&lt;BR /&gt;&lt;BR /&gt;A computer program itself is just a passive collection of instructions, while a process is the actual execution of those instructions. Several processes may be associated with the same program; for example, opening up several windows of the same program typically means more than one process is being executed. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=85269" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=85269&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Asif Sharif</description>
      <pubDate>Mon, 09 Jun 2008 03:35:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deamon-and-process/m-p/4212703#M326409</guid>
      <dc:creator>Asif Sharif</dc:creator>
      <dc:date>2008-06-09T03:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Deamon and Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deamon-and-process/m-p/4212704#M326410</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Simply,daemons are processes running in background waiting for serving.(when it starts it's a process in the memory)&lt;BR /&gt;&lt;BR /&gt;Processes are the form of the program which is running.(more usual form)&lt;BR /&gt;&lt;BR /&gt;Kenan.</description>
      <pubDate>Mon, 09 Jun 2008 07:11:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deamon-and-process/m-p/4212704#M326410</guid>
      <dc:creator>Kenan Erdey</dc:creator>
      <dc:date>2008-06-09T07:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deamon and Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deamon-and-process/m-p/4212705#M326411</link>
      <description>easiest way:&lt;BR /&gt;&lt;BR /&gt;nohup myprogram /tmp/log 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It will detach the program from current tty.&lt;BR /&gt;-only way to make a deamon-&lt;BR /&gt;&lt;BR /&gt;programatically, the launcher better if create a new process group, close(0), close(1) close(2); after a fflush on stdin stdout and stderr, then open /dev/null or files for 0 1 2&lt;BR /&gt;then fork(), and it is done you are a daemon.&lt;BR /&gt;&lt;BR /&gt;If you want an inetd started daemon; it is much more simple because the true daemon is inetd.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Jun 2008 07:43:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deamon-and-process/m-p/4212705#M326411</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2008-06-09T07:43:54Z</dc:date>
    </item>
  </channel>
</rss>

