Skip to content

Commit

Permalink
Commented Sleeping for 5 seconds Postgres SQL service
Browse files Browse the repository at this point in the history
  • Loading branch information
kemboi22 committed May 30, 2024
1 parent 26803c7 commit e799749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/systemd/user/postgresql-app.service
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/postgresql-app.pid \
--volume %S/state/restore/:/docker-entrypoint-initdb.d/:Z \
--env TZ=UTC \
${POSTGRES_IMAGE}
ExecStartPost=/usr/bin/bash -c "while ! podman exec postgresql-app psql -U postgres -d coder ; do sleep 5 ; done"
#ExecStartPost=/usr/bin/bash -c "while ! podman exec postgresql-app psql -U postgres -d coder ; do sleep 5 ; done"
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/postgresql-app.ctr-id -t 10
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/postgresql-app.ctr-id
ExecReload=/usr/bin/podman kill -s HUP postgresql-app
Expand Down

0 comments on commit e799749

Please sign in to comment.