On 15/04/2013, at 7:42 PM, Yuichi SEINO <seino.clust...@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@coro-n1 ~]# ps -ef | grep crm_mon > root 12967 12517 0 18:18 pts/1 00:00:00 grep crm_mon > [root@coro-n1 ~]# cat /tmp/ClusterMon.pid > 958 > [root@coro-n1 ~]# crm_mon --daemonize --as-html /tmp/aaa.html > [root@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@coro-n1 ~]# cat /tmp/ClusterMon.pid > 958 > > Sincerely, > Yuichi > > -- > Yuichi SEINO > METROSYSTEMS CORPORATION > E-mail:seino.clust...@gmail.com > > _______________________________________________ > Pacemaker mailing list: Pacemaker@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@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