ClusterLabs/pacemaker-1.0 — pull request #2 by t-matsuo (2012-03-30 06:43:24+00:00)
Title: Low: agents: pingd - Check pidfile on start

Occasionally, pingd's first monitor is failed after start.

```
test script
-------------------------------------
while true; do
killall pingd; sleep 3
rm -f /tmp/pingd.pid; sleep 1
/usr/lib64/heartbeat/pingd -D -p /tmp/pingd.pid -a ping_status -d
0 -m 100 -h 192.168.0.1
echo $?
ls /tmp/pingd.pid; sleep .1
ls /tmp/pingd.pid
done
-------------------------------------

result
-------------------------------------
0
/tmp/pingd.pid
/tmp/pingd.pid
0
ls: cannot access /tmp/pingd.pid: No such file or directory <- NG
/tmp/pingd.pid
0
/tmp/pingd.pid
/tmp/pingd.pid
0
/tmp/pingd.pid
/tmp/pingd.pid
0
/tmp/pingd.pid
/tmp/pingd.pid
0
ls: cannot access /tmp/pingd.pid: No such file or directory <- NG
/tmp/pingd.pid
--------------------------------------
```