mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
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:
@@ -14,6 +14,8 @@ DefaultDependencies=no
|
|||||||
Requires=systemd-exit.service
|
Requires=systemd-exit.service
|
||||||
After=systemd-exit.service
|
After=systemd-exit.service
|
||||||
AllowIsolate=yes
|
AllowIsolate=yes
|
||||||
|
JobTimeoutSec=30min
|
||||||
|
JobTimeoutAction=exit-force
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
Alias=ctrl-alt-del.target
|
Alias=ctrl-alt-del.target
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ DefaultDependencies=no
|
|||||||
Requires=systemd-halt.service
|
Requires=systemd-halt.service
|
||||||
After=systemd-halt.service
|
After=systemd-halt.service
|
||||||
AllowIsolate=yes
|
AllowIsolate=yes
|
||||||
|
JobTimeoutSec=30min
|
||||||
|
JobTimeoutAction=halt-force
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
Alias=ctrl-alt-del.target
|
Alias=ctrl-alt-del.target
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ DefaultDependencies=no
|
|||||||
Requires=systemd-kexec.service
|
Requires=systemd-kexec.service
|
||||||
After=systemd-kexec.service
|
After=systemd-kexec.service
|
||||||
AllowIsolate=yes
|
AllowIsolate=yes
|
||||||
|
JobTimeoutSec=30min
|
||||||
|
JobTimeoutAction=kexec-force
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
Alias=ctrl-alt-del.target
|
Alias=ctrl-alt-del.target
|
||||||
|
|||||||
Reference in New Issue
Block a user