mirror of
https://github.com/systemd/systemd.git
synced 2026-07-24 08:20:59 +00:00
Merge pull request #32880 from yuwata/unit-soft-reboot
units: do not soft-reboot before soft-reboot.target reached
This commit is contained in:
@@ -11,8 +11,10 @@
|
||||
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
|
||||
After=systemd-soft-reboot.service
|
||||
Before=systemd-soft-reboot.service
|
||||
AllowIsolate=yes
|
||||
JobTimeoutSec=30min
|
||||
JobTimeoutAction=soft-reboot-force
|
||||
|
||||
@@ -13,11 +13,6 @@ Documentation=man:systemd-journald.service(8) man:journald.conf(5)
|
||||
Requires=systemd-journald@%i.socket systemd-journald-varlink@%i.socket
|
||||
After=systemd-journald@%i.socket systemd-journald-varlink@%i.socket
|
||||
|
||||
# To avoid journald SIGKILLed during soft-reboot and corrupting journals.
|
||||
# See https://github.com/systemd/systemd/issues/30195
|
||||
Before=soft-reboot.target
|
||||
Conflicts=soft-reboot.target
|
||||
|
||||
[Service]
|
||||
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE CAP_CHOWN CAP_DAC_READ_SEARCH CAP_FOWNER CAP_SETUID CAP_SETGID CAP_MAC_OVERRIDE
|
||||
DevicePolicy=closed
|
||||
|
||||
@@ -11,6 +11,5 @@
|
||||
Description=Reboot System Userspace
|
||||
Documentation=man:systemd-soft-reboot.service(8)
|
||||
DefaultDependencies=no
|
||||
Requires=shutdown.target umount.target final.target
|
||||
After=shutdown.target umount.target final.target
|
||||
Requires=soft-reboot.target
|
||||
SuccessAction=soft-reboot-force
|
||||
|
||||
Reference in New Issue
Block a user