containers-postgresql/monit.conf

5 lines
240 B
Plaintext
Raw Normal View History

2023-02-04 22:37:00 +00:00
check process postgresql with pidfile /run/postgresql/pid
start program = "/usr/local/bin/postgresqld start"
stop program = "/usr/local/bin/postgresqld stop"
2019-09-24 17:04:19 +00:00
if failed port 5432 protocol pgsql for 3 times within 5 cycles then restart