]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/transaction.c
job: add JobRunningTimeoutSec for JOB_RUNNING state
authorMichal Koutný <mkoutny@suse.com>
Fri, 17 Feb 2017 16:47:20 +0000 (17:47 +0100)
committerMichal Koutný <mkoutny@suse.com>
Tue, 25 Apr 2017 16:00:29 +0000 (18:00 +0200)
commita2df3ea4ae058693bc7bf203d144e8af3c9493d2
treee27f533ddbe214617cb5b144d2d4d778b67a3df6
parent9e49656037717b96c06b1f1507a41550bdb2c795
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).
man/systemd.unit.xml
src/core/dbus-unit.c
src/core/job.c
src/core/job.h
src/core/load-fragment-gperf.gperf.m4
src/core/transaction.c
src/core/unit.c
src/core/unit.h