]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/end.service
Merge pull request #13663 from ssahani/dhcp-send-option-data
[thirdparty/systemd.git] / test / end.service
index 0f04dfeb2032ab72659fa7e1681eedb2e9037881..6e1996fd023f1d5dbc9d4f5c3d4d145b61a91f4e 100644 (file)
@@ -1,6 +1,10 @@
 [Unit]
 Description=End the test
 After=testsuite.service
+OnFailure=poweroff.target
+OnFailureJobMode=replace-irreversibly
 
 [Service]
-ExecStart=/usr/bin/systemctl poweroff --no-block
+Type=oneshot
+ExecStart=/bin/sh -x -c 'systemctl poweroff --no-block'
+TimeoutStartSec=5m