]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: add JobTimeoutAction= to exit.target and friends
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 May 2024 16:26:14 +0000 (01:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 May 2024 16:28:14 +0000 (01:28 +0900)
For consistency with other targets, e.g. poweroff.target or
reboot.target.

units/exit.target
units/halt.target
units/kexec.target

index f8a22e52c619810222c02c9da843f7d2b8e07105..046dc03c2ae6f8b3a63b581ea293cfa519e6c641 100644 (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
index bfa5f23e1de34192dc90158aecfa33d077aa20f7..c19865fe3ffa769006a7c745dc27df312b452ffd 100644 (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
index 5d8f8cdc52d2c5d04d67d9ae538bab790d7f320c..dee7d2009b5e6181aae3e405980aa19f912dbead 100644 (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