]> err.no Git - systemd/commitdiff
units: introduce final.target that can be used to plug units between shutdown.target...
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Oct 2010 01:07:36 +0000 (03:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Oct 2010 01:07:36 +0000 (03:07 +0200)
Makefile.am
units/final.target [new file with mode: 0644]
units/halt.service.in
units/kexec.service.in
units/poweroff.service.in
units/reboot.service.in

index 8b2248f1f767fb415291f1f02e3c3255f28eee02..b3f2abc20368d4e103f6c06f55baf2a5eef2dd66 100644 (file)
@@ -174,6 +174,7 @@ dist_systemunit_DATA = \
        units/rpcbind.target \
        units/rtc-set.target \
        units/shutdown.target \
+       units/final.target \
        units/umount.target \
        units/sigpwr.target \
        units/sockets.target \
diff --git a/units/final.target b/units/final.target
new file mode 100644 (file)
index 0000000..ba64261
--- /dev/null
@@ -0,0 +1,15 @@
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 2 of the License, or
+#  (at your option) any later version.
+
+# See systemd.special(7) for details
+
+[Unit]
+Description=Final Step
+DefaultDependencies=no
+RefuseManualStart=yes
+IgnoreDependencyFailure=yes
+After=shutdown.target umount.target
index 730c4c2955a8c2dd00a33c97ca90ca26beadef09..42e347043e5f2e0ac7ef39fae52bf29bdfee95ac 100644 (file)
@@ -8,8 +8,8 @@
 [Unit]
 Description=Halt
 DefaultDependencies=no
-Requires=shutdown.target umount.target
-After=shutdown.target umount.target
+Requires=shutdown.target umount.target final.target
+After=shutdown.target umount.target final.target
 
 [Service]
 Type=oneshot
index 70ad227ff9e1138a19b11e702c28d352463bfbd6..cf6bd65615cb4690c39045819e0d42afbdca4269 100644 (file)
@@ -8,8 +8,8 @@
 [Unit]
 Description=Reboot via kexec
 DefaultDependencies=no
-Requires=shutdown.target umount.target
-After=shutdown.target umount.target
+Requires=shutdown.target umount.target final.target
+After=shutdown.target umount.target final.target
 
 [Service]
 Type=oneshot
index da66f8efced3b8e6b1e0a2bfd4848ae0f5437682..124a4c0f365a040a194acc6e9fdbc0c315454eab 100644 (file)
@@ -8,8 +8,8 @@
 [Unit]
 Description=Power-Off
 DefaultDependencies=no
-Requires=shutdown.target umount.target
-After=shutdown.target umount.target
+Requires=shutdown.target umount.target final.target
+After=shutdown.target umount.target final.target
 
 [Service]
 Type=oneshot
index e5e666f2d7503b6f5a2c12083831e58f373daacb..f320fd886d20878df45307767cf73a2791867e14 100644 (file)
@@ -8,8 +8,8 @@
 [Unit]
 Description=Reboot
 DefaultDependencies=no
-Requires=shutdown.target umount.target
-After=shutdown.target umount.target
+Requires=shutdown.target umount.target final.target
+After=shutdown.target umount.target final.target
 
 [Service]
 Type=oneshot