We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85f2b2a commit ecbc95dCopy full SHA for ecbc95d
bin/postgres-monitor
@@ -0,0 +1,8 @@
1
+#!/bin/bash
2
+
3
+while true; do
4
+ if pg_ctl status | grep -q 'no server running'; then
5
+ pg_start;
6
+ fi
7
+ sleep 1
8
+done
0 commit comments