Re: Daemon

Cameron Simpson <[email protected]>
Newsgroups gmane.linux.redhat.general
Message-ID <[email protected]>
On 29Nov2013 11:26, PV Juliet <[email protected]> wrote:
>     I have a c program which run as a daemon in linux. Now i want to start
> this program  when the system boots up . Can any one tell me simple script
> which  will run this automatically.

The easy thing to do it to invoke it from the script /etc/rc.local.
Don't forget to background it if the daemon doesn't do it on its own.

Eg:

        /path/to/your/daemon blah blah blah &

Cheers,
-- 
Cameron Simpson <[email protected]>

The Design View editor of Visual InterDev 6.0 is currently incompatible
with Compatibility Mode, and may not function correctly.
- George Politis <[email protected]>, 22apr1999,
  quoting http://msdn.microsoft.com/vstudio/technical/ie5.asp

-- 
redhat-list mailing list
unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.