Compare commits

...

3 Commits

Author SHA1 Message Date
Bernhard Radermacher
ba3bc385ec don't foreground 2026-02-23 12:29:40 +01:00
Bernhard Radermacher
e520f975f7 remove support for witness 2026-02-23 12:28:27 +01:00
Bernhard Radermacher
5ba26897bf remove support for witness 2026-02-23 12:18:27 +01:00

View File

@@ -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