[ClusterLabs] Antw: Re: issues with pacemaker daemonization
Ulrich.Windl at rz.uni-regensburg.de
Mon Nov 13 08:20:52 CET 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:
>> We are observing that sometime pacemaker daemon gets the same
>> processgroup id as the process /script calling the "service pacemaker
>> 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
>> 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
> 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