containers-postgresql/monit.conf

5 lines
258 B
Plaintext

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