summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-14 03:07:36 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-14 03:07:36 +0200
commit9aac953a11452e825bad68750f811fe8722324b4 (patch)
tree30887790e199ddb5883eda11dd59106634d66153
parent46574a5b4afeac0c3f69f15ce47c460309cb9bec (diff)
units: introduce final.target that can be used to plug units between shutdown.target and the final shutdown
-rw-r--r--Makefile.am1
-rw-r--r--units/final.target15
-rw-r--r--units/halt.service.in4
-rw-r--r--units/kexec.service.in4
-rw-r--r--units/poweroff.service.in4
-rw-r--r--units/reboot.service.in4
6 files changed, 24 insertions, 8 deletions
diff --git a/Makefile.am b/Makefile.am
index 8b2248f1f7..b3f2abc203 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
index 0000000000..ba642615ad
--- /dev/null
+++ b/units/final.target
@@ -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
diff --git a/units/halt.service.in b/units/halt.service.in
index 730c4c2955..42e347043e 100644
--- a/units/halt.service.in
+++ b/units/halt.service.in
@@ -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
diff --git a/units/kexec.service.in b/units/kexec.service.in
index 70ad227ff9..cf6bd65615 100644
--- a/units/kexec.service.in
+++ b/units/kexec.service.in
@@ -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
diff --git a/units/poweroff.service.in b/units/poweroff.service.in
index da66f8efce..124a4c0f36 100644
--- a/units/poweroff.service.in
+++ b/units/poweroff.service.in
@@ -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
diff --git a/units/reboot.service.in b/units/reboot.service.in
index e5e666f2d7..f320fd886d 100644
--- a/units/reboot.service.in
+++ b/units/reboot.service.in
@@ -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