diff --git a/units/soft-reboot.target b/units/soft-reboot.target index 6a6c772875..4bca192454 100644 --- a/units/soft-reboot.target +++ b/units/soft-reboot.target @@ -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 diff --git a/units/systemd-soft-reboot.service b/units/systemd-soft-reboot.service index 35ba3a9fc4..da9f463821 100644 --- a/units/systemd-soft-reboot.service +++ b/units/systemd-soft-reboot.service @@ -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