summaryrefslogtreecommitdiffstats
path: root/units
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-05-17 18:26:14 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-05-17 18:28:14 +0200
commit1cd904bbe06c223e4e7d22d224f5785fbdde16f8 (patch)
tree961cec9ef565b8c05acc3ec7f251ed50df09a24b /units
parentman/soft-reboot: order surviving services before shutdown.target (diff)
downloadsystemd-1cd904bbe06c223e4e7d22d224f5785fbdde16f8.tar.xz
systemd-1cd904bbe06c223e4e7d22d224f5785fbdde16f8.zip
units: add JobTimeoutAction= to exit.target and friends
For consistency with other targets, e.g. poweroff.target or reboot.target.
Diffstat (limited to 'units')
-rw-r--r--units/exit.target2
-rw-r--r--units/halt.target2
-rw-r--r--units/kexec.target2
3 files changed, 6 insertions, 0 deletions
diff --git a/units/exit.target b/units/exit.target
index f8a22e52c6..046dc03c2a 100644
--- a/units/exit.target
+++ b/units/exit.target
@@ -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
diff --git a/units/halt.target b/units/halt.target
index bfa5f23e1d..c19865fe3f 100644
--- a/units/halt.target
+++ b/units/halt.target
@@ -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
diff --git a/units/kexec.target b/units/kexec.target
index 5d8f8cdc52..dee7d2009b 100644
--- a/units/kexec.target
+++ b/units/kexec.target
@@ -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