[Pacemaker] Behavior when crm_mon is a daemon

Yuichi SEINO seino.cluster2 at gmail.com
Fri Apr 19 01:05:17 UTC 2013


HI,

2013/4/16 Andrew Beekhof <andrew at beekhof.net>:
>
> On 15/04/2013, at 7:42 PM, Yuichi SEINO <seino.cluster2 at gmail.com> wrote:
>
>> Hi All,
>>
>> I look at the daemon of tools to make a new daemon. So, I have a question.
>>
>> When the old pid file existed, crm_mon is start as a daemon. Then,
>> crm_mon don't update this old pid file. And, crm_mon doesn't stop.
>> I would like to know if this behavior is correct.
>
> Some of it is, but the part about crm_mon not updating the pid file (which is probably also preventing it from stopping) is bad.
I understood that it is a negative behavior.
If we figure out a problem, I think that we want to fix it.

Sincerely,
Yuichi

>
>>
>> I replicate this situation.
>>
>> [root at coro-n1 ~]# ps -ef | grep crm_mon
>> root     12967 12517  0 18:18 pts/1    00:00:00 grep crm_mon
>> [root at coro-n1 ~]# cat /tmp/ClusterMon.pid
>>       958
>> [root at coro-n1 ~]# crm_mon --daemonize --as-html /tmp/aaa.html
>> [root at coro-n1 ~]# ps -ef | grep crm_mon
>> root     13051     1  0 18:18 pts/1    00:00:00 crm_mon --daemonize
>> --as-html /tmp/aaa.html
>> root     13053 12517  0 18:18 pts/1    00:00:00 grep crm_mon
>> [root at coro-n1 ~]# cat /tmp/ClusterMon.pid
>>       958
>>
>> Sincerely,
>> Yuichi
>>
>> --
>> Yuichi SEINO
>> METROSYSTEMS CORPORATION
>> E-mail:seino.cluster2 at gmail.com
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://bugs.clusterlabs.org
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org



--
Yuichi SEINO
METROSYSTEMS CORPORATION
E-mail:seino.cluster2 at gmail.com




More information about the Pacemaker mailing list