We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b81245b commit 888bd47Copy full SHA for 888bd47
ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
@@ -478,6 +478,13 @@ EOF
478
479
sleep 3
480
systemctl stop postgresql
481
+
482
+ # Additional check to ensure postgres is really stopped
483
+ if [ -f "${PGDATAOLD}/postmaster.pid" ]; then
484
+ echo "PostgreSQL still running, forcing stop..."
485
+ kill -9 $(head -n 1 "${PGDATAOLD}/postmaster.pid") || true
486
+ rm -f "${PGDATAOLD}/postmaster.pid"
487
+ fi
488
else
489
CI_stop_postgres
490
fi
0 commit comments