|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
From af49e1e5c7ff8e30035c1880ee42225f2d15bfd9 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Date: Wed, 5 Nov 2014 09:16:58 -0500
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Subject: [PATCH] units: disable job timeouts
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
For boot, we might kill fsck in the middle, with likely catastrophic
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
consequences.
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
On shutdown there might be other jobs, like downloading of updates for
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
installation, and other custom jobs. It seems better to schedule an
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
individual timeout on each one separately, when it is known what
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
timeout is useful.
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Disable the timeouts for now, until we have a clearer picture of how
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
we can deal with long-running jobs.
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
(cherry picked from commit 038193efa6c00e852110f17383ef2786136f4f81)
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
https://bugzilla.redhat.com/show_bug.cgi?id=1152220
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
units/basic.target | 3 ---
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
units/poweroff.target | 2 --
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
units/reboot.target | 2 --
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
3 files changed, 7 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
diff --git a/units/basic.target b/units/basic.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
index eee3e6b774..abb63ec560 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
--- a/units/basic.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+++ b/units/basic.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
@@ -13,6 +13,3 @@ Requires=sysinit.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
After=sysinit.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Wants=sockets.target timers.target paths.target slices.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
After=sockets.target paths.target slices.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
-
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
-JobTimeoutSec=15min
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
-JobTimeoutAction=poweroff-force
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
diff --git a/units/poweroff.target b/units/poweroff.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
index dd92d816ca..71871033a5 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
--- a/units/poweroff.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+++ b/units/poweroff.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
@@ -12,8 +12,6 @@ DefaultDependencies=no
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Requires=systemd-poweroff.service
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
After=systemd-poweroff.service
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
AllowIsolate=yes
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
-JobTimeoutSec=30min
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
-JobTimeoutAction=poweroff-force
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
[Install]
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Alias=ctrl-alt-del.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
diff --git a/units/reboot.target b/units/reboot.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
index 668b98d9e4..dec8f56796 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
--- a/units/reboot.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+++ b/units/reboot.target
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
@@ -12,8 +12,6 @@ DefaultDependencies=no
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Requires=systemd-reboot.service
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
After=systemd-reboot.service
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
AllowIsolate=yes
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
-JobTimeoutSec=30min
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
-JobTimeoutAction=reboot-force
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
[Install]
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Alias=ctrl-alt-del.target
|