summaryrefslogtreecommitdiff
path: root/test/end.service
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2015-11-08 22:00:34 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2015-11-10 18:01:15 +0000
commit5c404f1ab8e96efedb983806443ca982a1b2a372 (patch)
tree4183825be3d59b298243ae1bb513190462f8a514 /test/end.service
parent2933d599c242ebfc70ddcffe59163916b02270f1 (diff)
downloadsystemd-5c404f1ab8e96efedb983806443ca982a1b2a372.tar.gz
tests: various fixes
* remove journal flushing (systemd-journal-flush.service runs journalctl --flush on boot) * use sh -c and PATH instead of @SYSTEMCTL@ expansion * remove unnecessary semicolons etc
Diffstat (limited to 'test/end.service')
-rw-r--r--test/end.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/end.service b/test/end.service
new file mode 100644
index 0000000000..6e1996fd02
--- /dev/null
+++ b/test/end.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=End the test
+After=testsuite.service
+OnFailure=poweroff.target
+OnFailureJobMode=replace-irreversibly
+
+[Service]
+Type=oneshot
+ExecStart=/bin/sh -x -c 'systemctl poweroff --no-block'
+TimeoutStartSec=5m