summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Koutný <mkoutny@suse.com>2017-04-05 14:11:12 +0200
committerMichal Koutný <mkoutny@suse.com>2017-04-25 18:00:36 +0200
commitd9732d78034cd01a75f2cda6ebaddb4c3a0929ea (patch)
treeb9c458e51ef3ec885e1044169b2839522d5d6c74
parent4195077ab4c823c385cdc3c868a56178f8d93723 (diff)
core/device: Use JobRunningTimeoutSec= for device units
Device job timeouts should respect possible device job dependencies so we set JobRunningTimeoutSec= by default.
-rw-r--r--src/core/device.c2
-rw-r--r--src/shared/generator.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/device.c b/src/core/device.c
index 0e67c96552..da008f6041 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -112,7 +112,7 @@ static void device_init(Unit *u) {
* indefinitely for plugged in devices, something which cannot
* happen for the other units since their operations time out
* anyway. */
- u->job_timeout = u->manager->default_timeout_start_usec;
+ u->job_running_timeout = u->manager->default_timeout_start_usec;
u->ignore_on_isolate = true;
}
diff --git a/src/shared/generator.c b/src/shared/generator.c
index 5f6b1de811..19ec133772 100644
--- a/src/shared/generator.c
+++ b/src/shared/generator.c
@@ -188,7 +188,7 @@ int generator_write_timeouts(
return write_drop_in_format(dir, unit, 50, "device-timeout",
"# Automatically generated by %s\n\n"
- "[Unit]\nJobTimeoutSec=%s",
+ "[Unit]\nJobRunningTimeoutSec=%s",
program_invocation_short_name, timeout);
}