summaryrefslogtreecommitdiff
path: root/test/system/250-systemd.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/system/250-systemd.bats')
-rw-r--r--test/system/250-systemd.bats13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats
index ee951ff21..37e5fa2f9 100644
--- a/test/system/250-systemd.bats
+++ b/test/system/250-systemd.bats
@@ -125,4 +125,17 @@ function service_cleanup() {
service_cleanup
}
+@test "podman generate systemd - stop-signal" {
+ cname=$(random_string)
+ run_podman create --name $cname --stop-signal=42 $IMAGE
+ run_podman generate systemd --new $cname
+ is "$output" ".*KillSignal=42.*" "KillSignal is set"
+
+ # Regression test for #11304: systemd wants a custom stop-signal.
+ run_podman rm -f $cname
+ run_podman create --name $cname --systemd=true $IMAGE systemd
+ run_podman generate systemd --new $cname
+ is "$output" ".*KillSignal=37.*" "KillSignal is set"
+}
+
# vim: filetype=sh