Compare commits
3 Commits
with_witne
...
ba3bc385ec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba3bc385ec | ||
|
|
e520f975f7 | ||
|
|
5ba26897bf |
@@ -170,11 +170,8 @@ if [[ ! -s "$PGDATA/PG_VERSION" ]]; then
|
|||||||
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr/repmgr.conf standby register
|
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr/repmgr.conf standby register
|
||||||
;;
|
;;
|
||||||
witness )
|
witness )
|
||||||
until /usr/lib/postgresql/15/bin/repmgr -h $REPMGR_UPSTREAM -f /etc/repmgr/repmgr.conf witness register &> /dev/null
|
echo "Witness Server not supported for this configuration!"
|
||||||
do
|
exit 100
|
||||||
echo "Primary host not ready. Waiting for 5 minutes..."
|
|
||||||
sleep 300
|
|
||||||
done
|
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr/repmgr.conf primary register
|
/usr/lib/postgresql/15/bin/repmgr -f /etc/repmgr/repmgr.conf primary register
|
||||||
@@ -191,4 +188,4 @@ postgres &
|
|||||||
sleep 10
|
sleep 10
|
||||||
repmgrd -f /etc/repmgr/repmgr.conf --pid-file /tmp/repmgrd.pid
|
repmgrd -f /etc/repmgr/repmgr.conf --pid-file /tmp/repmgrd.pid
|
||||||
|
|
||||||
fg %1
|
# fg %1
|
||||||
|
|||||||
Reference in New Issue
Block a user