Skip to content

Commit

Permalink
stop gracefully postgresql and spacewalk when stop uyuni-server conta…
Browse files Browse the repository at this point in the history
  • Loading branch information
mbussolotto authored Feb 1, 2024
1 parent efc4341 commit 070f1d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mgradm/shared/templates/serviceTemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ ExecStart=/usr/bin/podman run \
-e TZ=${TZ} \
--network {{ .Network }} \
${UYUNI_IMAGE}
ExecStop=/usr/bin/podman exec \
uyuni-server \
/bin/bash -c 'spacewalk-service stop && systemctl stop postgresql'
ExecStop=/usr/bin/podman stop \
--ignore -t 10 \
--cidfile=%t/%n.ctr-id
Expand Down

0 comments on commit 070f1d2

Please sign in to comment.