We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6cef12 commit 844b8bbCopy full SHA for 844b8bb
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