Hello,

I have a script which is reloading haproxy by running:

    haproxy -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid) [...]

and noticed that occasionnally the pidfile was empty, leading to the old
process not getting killed.

I'm struggling to understand *why* the pidfile is empty, so my question
is: would it be plausible that haproxy opens an zeroes the content of the
pidfile faster than cat can read from it ? (This is with version 1.6.14)

Thanks !

Marc

Reply via email to