check process postgresql with pidfile /tmp/postgresql.pid start program = "/usr/local/bin/postgresql start" stop program = "/usr/local/bin/postgresql stop" if failed port 5432 protocol pgsql for 3 times within 5 cycles then restart