summaryrefslogtreecommitdiff
path: root/units/systemd-poweroff.service
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-10-16 15:34:57 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-10-17 19:31:50 +0200
commitafa6206583dfbc93e29981cb5d713841e4ca2865 (patch)
tree6b149cca97e24645603a8cbaa3135aa2f9a98022 /units/systemd-poweroff.service
parentd85515edcf9700dc068201ab9f7103f04f3b25b2 (diff)
downloadsystemd-afa6206583dfbc93e29981cb5d713841e4ca2865.tar.gz
units: use SuccessAction=poweroff-force in systemd-poweroff.service
Explicit systemctl calls remain in systemd-halt.service and the system systemd-exit.service. To convert systemd-halt, we'd need to add SuccessAction=halt-force. Halting doesn't make much sense, so let's just leave that is. systemd-exit.service will be converted in the next commit.
Diffstat (limited to 'units/systemd-poweroff.service')
-rw-r--r--units/systemd-poweroff.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/units/systemd-poweroff.service b/units/systemd-poweroff.service
new file mode 100644
index 0000000000..8d1d54389b
--- /dev/null
+++ b/units/systemd-poweroff.service
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: LGPL-2.1+
+#
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Power-Off
+Documentation=man:systemd-halt.service(8)
+DefaultDependencies=no
+Requires=shutdown.target umount.target final.target
+After=shutdown.target umount.target final.target
+SuccessAction=poweroff-force