Carson Gaspar wrote:
> Alan Robertson wrote:
>> Carson Gaspar wrote:
>>> Xinwei Hu wrote:
>>>
>>>>   The known issue is that I don't know how to daemonize in bash,
>>>> so the pingd RA needs a little tweak also.
>>> You can't daemonize in bash, unless your OS comes with some executable
>>> that daemonizes arbitrary programs (I think some flavours of Linux do).
>>
>> Actually, there isn't that much to daemonizing things.  A little I/O
>> redirection, a little signal handling and a little process group
>> manipulation (not required for LRM RAs).
> 
> It's actually rather complicated to properly daemonize a program (there
> a several persnickety steps to avoid a tty you open becoming your
> controlling tty). Of course hertbeat's requirements may be lesser.

The good thing is that there's no reason I know of for an RA to open a
tty, and we already do the process group manipulation - which I think is
the big thing to do to avoid having a tty become your controlling tty.


-- 
    Alan Robertson <[EMAIL PROTECTED]>

"Openness is the foundation and preservative of friendship...  Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to