units: introduce final.target that can be used to plug units between shutdown.target and the final shutdown
This commit is contained in:
parent
46574a5b4a
commit
9aac953a11
|
@ -174,6 +174,7 @@ dist_systemunit_DATA = \
|
||||||
units/rpcbind.target \
|
units/rpcbind.target \
|
||||||
units/rtc-set.target \
|
units/rtc-set.target \
|
||||||
units/shutdown.target \
|
units/shutdown.target \
|
||||||
|
units/final.target \
|
||||||
units/umount.target \
|
units/umount.target \
|
||||||
units/sigpwr.target \
|
units/sigpwr.target \
|
||||||
units/sockets.target \
|
units/sockets.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
|
|
@ -8,8 +8,8 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Halt
|
Description=Halt
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Requires=shutdown.target umount.target
|
Requires=shutdown.target umount.target final.target
|
||||||
After=shutdown.target umount.target
|
After=shutdown.target umount.target final.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Reboot via kexec
|
Description=Reboot via kexec
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Requires=shutdown.target umount.target
|
Requires=shutdown.target umount.target final.target
|
||||||
After=shutdown.target umount.target
|
After=shutdown.target umount.target final.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Power-Off
|
Description=Power-Off
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Requires=shutdown.target umount.target
|
Requires=shutdown.target umount.target final.target
|
||||||
After=shutdown.target umount.target
|
After=shutdown.target umount.target final.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Reboot
|
Description=Reboot
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Requires=shutdown.target umount.target
|
Requires=shutdown.target umount.target final.target
|
||||||
After=shutdown.target umount.target
|
After=shutdown.target umount.target final.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
Loading…
Reference in New Issue