check process postgres with pidfile /var/run/postgresql/9.6-main.pid group database start program = "/bin/systemctl start postgresql" stop program = "/bin/systemctl stop postgresql" if failed port 5432 protocol pgsql with timeout 10 seconds with retry 2 then restart if 5 restarts within 5 cycles then timeout