Skip to content

Commit 9e85cd1

Browse files
committed
ROX-19980 fix
1 parent e0edb67 commit 9e85cd1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

image/db/rhel/scripts/start-db.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ echo "Starting database..."
1111
POSTGRES_PASSWORD=postgres /usr/local/bin/docker-entrypoint.sh postgres -c config_file=/tmp/postgres.conf
1212

1313
echo "Waiting for database to stop..."
14-
pg_ctl -D /var/lib/postgresql/data/pgdata -w stop
14+
while [ -f /var/lib/postgresql/data/pgdata/postmaster.pid ]; do
15+
sleep 1
16+
done
1517

1618
rm /tmp/postgres.conf

0 commit comments

Comments
 (0)