summaryrefslogtreecommitdiffstats
path: root/test/units/test-honor-first-shutdown.service
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/units/test-honor-first-shutdown.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/units/test-honor-first-shutdown.service b/test/units/test-honor-first-shutdown.service
new file mode 100644
index 0000000..3170f97
--- /dev/null
+++ b/test/units/test-honor-first-shutdown.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Honor First Shutdown feature
+After=multi-user.target
+
+[Service]
+ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
+ExecStop=sh -c 'kill -KILL $MAINPID'
+FailureAction=reboot
+
+[Install]
+WantedBy=multi-user.target