Re: Daemon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
    I used the sample init.d  script from this site
http://werxltd.com/wp/2012/01/05/simple-init-d-script-template/.  My  c
program itself a daemon. Can i invoke this daemon  from this code ? when i
am giving this stop /status option is not working .It displays wrong pid .
what will be  the best way to run this daemon when the system boots up? is
there other way to call this daemon ??
Thanks and Regards
Juliet


On Sun, Dec 1, 2013 at 4:05 AM, Hakan Koseoglu <hakan@xxxxxxxxxxxx> wrote:

> Awin,
>
> On 29 November 2013 10:20, awin kumar <awin000@xxxxxxxxx> wrote:
> >
> > and that
> >  path sh shellscript name
> >
> >  inside shell script you mention ./object file name
> >  object file
> > when you complie c program that time you create one object name
>
> You do not make any sense.
>
> The correct procedure is to write an init script, you can base it on
> any of the /etc/init.d/ scripts, then add it to the startup using
> chkconfig --add and chkconfig enable commands. The init script will
> contain the priority.
>
> SysV style init scripts are around for a long long time, they're not a
> recent invention. See various RHEL manuals to get a start on the
> subject (start from here if you like
>
> https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Services_and_Daemons.html
> )
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux