Loading postgresql/bin/pg_failover +3 −3 Original line number Diff line number Diff line Loading @@ -47,13 +47,13 @@ done < <(/sbin/ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 if [[ $SSH == true ]]; then echo "[DEBUG] Execute touch over ssh" ssh $NEW_MASTER_HOST_NAME 'touch $TRIGGER_FILE' su postgres -c "ssh $NEW_MASTER_HOST_NAME 'touch $TRIGGER_FILE && chown postgres:postgres $TRIGGER_FILE'" else echo "[DEBUG] Execute touch directly" touch $TRIGGER_FILE touch $TRIGGER_FILE && chown postgres:postgres $TRIGGER_FILE fi # In this place configure start sennesary services jboss-cli --controller=$HOST_NAME:9999 --connect --commands="/host=standby/server-config=server-standalone:start()" #jboss-cli --controller=$HOST_NAME:9999 --connect --commands="/host=standby/server-config=server-standalone:start()" exit 0 Loading
postgresql/bin/pg_failover +3 −3 Original line number Diff line number Diff line Loading @@ -47,13 +47,13 @@ done < <(/sbin/ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 if [[ $SSH == true ]]; then echo "[DEBUG] Execute touch over ssh" ssh $NEW_MASTER_HOST_NAME 'touch $TRIGGER_FILE' su postgres -c "ssh $NEW_MASTER_HOST_NAME 'touch $TRIGGER_FILE && chown postgres:postgres $TRIGGER_FILE'" else echo "[DEBUG] Execute touch directly" touch $TRIGGER_FILE touch $TRIGGER_FILE && chown postgres:postgres $TRIGGER_FILE fi # In this place configure start sennesary services jboss-cli --controller=$HOST_NAME:9999 --connect --commands="/host=standby/server-config=server-standalone:start()" #jboss-cli --controller=$HOST_NAME:9999 --connect --commands="/host=standby/server-config=server-standalone:start()" exit 0