summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--units/poweroff.target2
-rw-r--r--units/reboot.target2
2 files changed, 4 insertions, 0 deletions
diff --git a/units/poweroff.target b/units/poweroff.target
index 71871033a5..dd92d816ca 100644
--- a/units/poweroff.target
+++ b/units/poweroff.target
@@ -12,6 +12,8 @@ DefaultDependencies=no
Requires=systemd-poweroff.service
After=systemd-poweroff.service
AllowIsolate=yes
+JobTimeoutSec=30min
+JobTimeoutAction=poweroff-force
[Install]
Alias=ctrl-alt-del.target
diff --git a/units/reboot.target b/units/reboot.target
index dec8f56796..668b98d9e4 100644
--- a/units/reboot.target
+++ b/units/reboot.target
@@ -12,6 +12,8 @@ DefaultDependencies=no
Requires=systemd-reboot.service
After=systemd-reboot.service
AllowIsolate=yes
+JobTimeoutSec=30min
+JobTimeoutAction=reboot-force
[Install]
Alias=ctrl-alt-del.target