|Date:||Wed, 25 May 2011 13:10:44 -0400|
I check the postgresql process (code below) and issue a restart when it fails. However, in a couple of situations, postgresql is already starting but we kick off a second copy. Is there a way to have it fail twice before issuing the restart? For other reasons, I don't want to change the polling time.
check process postgresql with pidfile /var/run/postmaster.5432.pid
start program = "/etc/init.d/postgresql start"
stop program = "/etc/init.d/postgresql stop"
if failed host localhost port 5432 protocol pgsql then restart
if 5 restarts within 5 cycles then timeout
|[Prev in Thread]||Current Thread||[Next in Thread]|