summaryrefslogtreecommitdiffstats
path: root/src/core/unit.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-09-27 17:30:50 +0200
committerLennart Poettering <lennart@poettering.net>2017-10-05 13:06:44 +0200
commiteae51da36e8800f6d466580a817eb5877220376d (patch)
tree0800cdd673d73f774a5a1fc1524627e2eef5cd64 /src/core/unit.h
parentMerge pull request #6944 from poettering/suspend-fix (diff)
downloadsystemd-eae51da36e8800f6d466580a817eb5877220376d.tar.xz
systemd-eae51da36e8800f6d466580a817eb5877220376d.zip
unit: when JobTimeoutSec= is turned off, implicitly turn off JobRunningTimeoutSec= too
We added JobRunningTimeoutSec= late, and Dracut configured only JobTimeoutSec= to turn of root device timeouts before. With this change we'll propagate a reset of JobTimeoutSec= into JobRunningTimeoutSec=, but only if the latter wasn't set explicitly. This should restore compatibility with older systemd versions. Fixes: #6402
Diffstat (limited to 'src/core/unit.h')
-rw-r--r--src/core/unit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/unit.h b/src/core/unit.h
index 02090ed67d..8c5c92ecd9 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -123,6 +123,7 @@ struct Unit {
/* Job timeout and action to take */
usec_t job_timeout;
usec_t job_running_timeout;
+ bool job_running_timeout_set:1;
EmergencyAction job_timeout_action;
char *job_timeout_reboot_arg;