diff options
author | Michal Koutný <mkoutny@suse.com> | 2017-02-17 17:47:20 +0100 |
---|---|---|
committer | Michal Koutný <mkoutny@suse.com> | 2017-04-25 18:00:29 +0200 |
commit | a2df3ea4ae058693bc7bf203d144e8af3c9493d2 (patch) | |
tree | e27f533ddbe214617cb5b144d2d4d778b67a3df6 /src/core/unit.h | |
parent | 9e49656037717b96c06b1f1507a41550bdb2c795 (diff) |
job: add JobRunningTimeoutSec for JOB_RUNNING state
Unit.JobTimeoutSec starts when a job is enqueued in a transaction. The
introduced distinct Unit.JobRunningTimeoutSec starts only when the job starts
running (e.g. it groups all Exec* commands of a service or spans waiting for a
device period.)
Unit.JobRunningTimeoutSec is intended to be used by default instead of
Unit.JobTimeoutSec for device units where such behavior causes less confusion
(consider a job for a _netdev mount device, with this change the timeout will
start ticking only after the network is ready).
Diffstat (limited to 'src/core/unit.h')
-rw-r--r-- | src/core/unit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/unit.h b/src/core/unit.h index 8052c234fd..cf21b37e22 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -114,6 +114,7 @@ struct Unit { /* Job timeout and action to take */ usec_t job_timeout; + usec_t job_running_timeout; EmergencyAction job_timeout_action; char *job_timeout_reboot_arg; |