1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00
iiab/roles/monit/templates/postgresql.unused
Jerry Vonau e397f50f53 tag unused
Use what is in /etc/monit/conf-available as a starting point
2021-05-16 16:25:32 -05:00

6 lines
380 B
Text
Executable file

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