Merge pull request #32975 from yuwata/revert-soft-reboot-reordering
Revert soft-reboot unit reordering
This commit is contained in:
+2
-2
@@ -324,11 +324,11 @@ systemd-reboot.service | | | |
|
||||
v | v |
|
||||
<emphasis>poweroff.target</emphasis> | systemd-kexec.service |
|
||||
v | |
|
||||
<emphasis>halt.target</emphasis> | <emphasis>soft-reboot.target</emphasis>
|
||||
<emphasis>halt.target</emphasis> | systemd-soft-reboot.service
|
||||
v |
|
||||
<emphasis>kexec.target</emphasis> |
|
||||
v
|
||||
systemd-soft-reboot.service</programlisting>
|
||||
<emphasis>soft-reboot.target</emphasis></programlisting>
|
||||
|
||||
<para>Commonly used system shutdown targets are <emphasis>emphasized</emphasis>.</para>
|
||||
|
||||
|
||||
@@ -11,10 +11,8 @@
|
||||
Description=Reboot System Userspace
|
||||
Documentation=man:systemd.special(7)
|
||||
DefaultDependencies=no
|
||||
Requires=shutdown.target umount.target final.target
|
||||
After=shutdown.target umount.target final.target
|
||||
Requires=systemd-soft-reboot.service
|
||||
Before=systemd-soft-reboot.service
|
||||
After=systemd-soft-reboot.service
|
||||
AllowIsolate=yes
|
||||
JobTimeoutSec=30min
|
||||
JobTimeoutAction=soft-reboot-force
|
||||
|
||||
@@ -17,7 +17,10 @@ Before=sysinit.target
|
||||
|
||||
# To avoid journald SIGKILLed during soft-reboot and corrupting journals.
|
||||
# See https://github.com/systemd/systemd/issues/30195
|
||||
Before=soft-reboot.target
|
||||
# Note, typically soft-reboot.target will be never reached,
|
||||
# and systemd-soft-reboot.service will trigger soft-reboot.
|
||||
# Hence, this must be stopped before systemd-soft-reboot.service.
|
||||
Before=soft-reboot.target systemd-soft-reboot.service
|
||||
Conflicts=soft-reboot.target
|
||||
|
||||
# Mount and swap units need the journal socket units. If they were removed by
|
||||
|
||||
@@ -11,5 +11,6 @@
|
||||
Description=Reboot System Userspace
|
||||
Documentation=man:systemd-soft-reboot.service(8)
|
||||
DefaultDependencies=no
|
||||
Requires=soft-reboot.target
|
||||
Requires=shutdown.target umount.target final.target
|
||||
After=shutdown.target umount.target final.target
|
||||
SuccessAction=soft-reboot-force
|
||||
|
||||
Reference in New Issue
Block a user