[Pacemaker] Behavior when crm_mon is a daemon

Yuichi SEINO seino.cluster2 at gmail.com
Mon Apr 15 09:42:08 UTC 2013


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.

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




More information about the Pacemaker mailing list