check process postgresql with pidfile /library/pgsql-xs/postmaster.pid
    start program = "/sbin/service postgresql-xs start"
    stop  program = "/sbin/service postgresql-xs 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
