Files
mozo-backend/config/recipes/templates/monit/postgresql.erb
T
2013-04-17 16:25:38 +02:00

6 lines
266 B
Plaintext

check process postgresql with pidfile <%= postgresql_pid %>
start program = "/etc/init.d/postgresql start"
stop program = "/etc/init.d/postgresql stop"
if failed host localhost port 5432 protocol pgsql then restart
if 5 restarts within 5 cycles then timeout