units: add JobTimeoutAction= to exit.target and friends

For consistency with other targets, e.g. poweroff.target or
reboot.target.
This commit is contained in:
Yu Watanabe 2024-05-18 01:26:14 +09:00
parent 3acc318591
commit 1cd904bbe0
3 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,8 @@ DefaultDependencies=no
Requires=systemd-exit.service
After=systemd-exit.service
AllowIsolate=yes
JobTimeoutSec=30min
JobTimeoutAction=exit-force
[Install]
Alias=ctrl-alt-del.target

View File

@ -14,6 +14,8 @@ DefaultDependencies=no
Requires=systemd-halt.service
After=systemd-halt.service
AllowIsolate=yes
JobTimeoutSec=30min
JobTimeoutAction=halt-force
[Install]
Alias=ctrl-alt-del.target

View File

@ -14,6 +14,8 @@ DefaultDependencies=no
Requires=systemd-kexec.service
After=systemd-kexec.service
AllowIsolate=yes
JobTimeoutSec=30min
JobTimeoutAction=kexec-force
[Install]
Alias=ctrl-alt-del.target