Skip to content

Commit 25d505c

Browse files
authored
Merge pull request #32975 from yuwata/revert-soft-reboot-reordering
Revert soft-reboot unit reordering
2 parents 87ed87e + 37143fd commit 25d505c

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

man/bootup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,11 @@ systemd-reboot.service | | | |
324324
v | v |
325325
<emphasis>poweroff.target</emphasis> | systemd-kexec.service |
326326
v | |
327-
<emphasis>halt.target</emphasis> | <emphasis>soft-reboot.target</emphasis>
327+
<emphasis>halt.target</emphasis> | systemd-soft-reboot.service
328328
v |
329329
<emphasis>kexec.target</emphasis> |
330330
v
331-
systemd-soft-reboot.service</programlisting>
331+
<emphasis>soft-reboot.target</emphasis></programlisting>
332332

333333
<para>Commonly used system shutdown targets are <emphasis>emphasized</emphasis>.</para>
334334

units/soft-reboot.target

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111
Description=Reboot System Userspace
1212
Documentation=man:systemd.special(7)
1313
DefaultDependencies=no
14-
Requires=shutdown.target umount.target final.target
15-
After=shutdown.target umount.target final.target
1614
Requires=systemd-soft-reboot.service
17-
Before=systemd-soft-reboot.service
15+
After=systemd-soft-reboot.service
1816
AllowIsolate=yes
1917
JobTimeoutSec=30min
2018
JobTimeoutAction=soft-reboot-force

units/systemd-journald.service.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ Before=sysinit.target
1717

1818
# To avoid journald SIGKILLed during soft-reboot and corrupting journals.
1919
# See https://github.com/systemd/systemd/issues/30195
20-
Before=soft-reboot.target
20+
# Note, typically soft-reboot.target will be never reached,
21+
# and systemd-soft-reboot.service will trigger soft-reboot.
22+
# Hence, this must be stopped before systemd-soft-reboot.service.
23+
Before=soft-reboot.target systemd-soft-reboot.service
2124
Conflicts=soft-reboot.target
2225

2326
# Mount and swap units need the journal socket units. If they were removed by

units/systemd-soft-reboot.service

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
Description=Reboot System Userspace
1212
Documentation=man:systemd-soft-reboot.service(8)
1313
DefaultDependencies=no
14-
Requires=soft-reboot.target
14+
Requires=shutdown.target umount.target final.target
15+
After=shutdown.target umount.target final.target
1516
SuccessAction=soft-reboot-force

0 commit comments

Comments
 (0)