[Pacemaker] Behavior when crm_mon is a daemon

Andrew Beekhof andrew at beekhof.net
Tue Apr 16 02:53:24 UTC 2013


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 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





More information about the Pacemaker mailing list