[ClusterLabs] Antw: Re: issues with pacemaker daemonization

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Mon Nov 13 02:20:52 EST 2017

>>> Ken Gaillot <kgaillot at redhat.com> schrieb am 09.11.2017 um 16:49 in Nachricht
<1510242560.5244.3.camel at redhat.com>:
> On Thu, 2017-11-09 at 15:59 +0530, ashutosh tiwari wrote:
>> Hi,
>> We are observing that sometime pacemaker daemon gets the same
>> processgroup id as the process /script calling the "service pacemaker
>> start". 
>> While child processes of pacemaeker(cib/crmd/pengine) have there
>> processgroup id  same as there pid which is how things should be for
>> a daemon afaik.
>> Do we expect it to be managed by init.d (centos 6) or pacemaker
>> binary.
>> pacemaker version: pacemaker-1.1.14-8.el6_8.1.x86_64
>> Thanks and Regards,
>> Ashutosh Tiwari
> When pacemakerd spawns a child (cib etc.), it calls setsid() in the
> child to start a new session, which will set the process group ID and
> session ID to the child's PID.
> However it doesn't do anything similar for itself. Possibly it should.
> It's a longstanding to-do item to make pacemaker daemonize itself more
> "properly", but no one's had the time to address it.

Shouldn't be that hard when fork()ing anyway...

> -- 
> Ken Gaillot <kgaillot at redhat.com>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org 
> http://lists.clusterlabs.org/mailman/listinfo/users 
> Project Home: http://www.clusterlabs.org 
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf 
> Bugs: http://bugs.clusterlabs.org 

More information about the Users mailing list