Sha256: e57b33291e86b65eced1fbb720c45665a2738b51bf008cf38b7b9d2856a99788

Contents?: true

Size: 632 Bytes

Versions: 9

Compression:

Stored size: 632 Bytes

Contents

# managed by chef, changes will be overwritten
check process postgresql with pidfile /var/run/postgresql/<%= node.postgresql.version -%>-main.pid
  start program "/etc/init.d/postgresql start"
  stop  program "/etc/init.d/postgresql stop"
  if failed unixsocket /var/run/postgresql/.s.PGSQL.5432 protocol pgsql then alert
  if failed unixsocket /var/run/postgresql/.s.PGSQL.5432 protocol pgsql then restart
  <% if node.postgresql.listen_all -%>
  if failed host localhost port 5432 protocol pgsql then alert
  if failed host localhost port 5432 protocol pgsql then restart
  <% end -%>
  if 5 restarts within 5 cycles then timeout

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mana-0.0.10 cookbooks/postgresql/templates/default/postgresql.monit.conf.erb
mana-0.0.8 cookbooks/postgresql/templates/default/postgresql.monit.conf.erb
mana-0.0.7 cookbooks/postgresql/templates/default/postgresql.monit.conf.erb
mana-0.0.6 cookbooks/postgresql/templates/default/postgresql.monit.conf.erb
mana-0.0.5 cookbooks/postgresql/templates/default/postgresql.monit.conf.erb
mana-0.0.4 cookbooks/postgresql/templates/default/postgresql.monit.conf.erb
mana-0.0.3 cookbooks/postgresql/templates/default/postgresql.monit.conf.erb
mana-0.0.2 cookbooks/postgresql/templates/default/postgresql.monit.conf.erb
mana-0.0.1 cookbooks/postgresql/templates/default/postgresql.monit.conf.erb