check process postgresql with pidfile /library/pgsql-iiab/postmaster.pid start program = "/sbin/service postgresql-iiab start" stop program = "/sbin/service postgresql-iiab stop" if failed unixsocket /var/run/postgresql/.s.PGSQL.5432 protocol pgsql then restart if failed host localhost port 5432 protocol pgsql then restart if 5 restarts within 5 cycles then timeout