From 1f19a534ea84458670ec011f6d1ba96f76e3f783 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Mon, 4 Nov 2013 18:47:43 +0200 Subject: Configurable Timeouts/Restarts default values https://bugs.freedesktop.org/show_bug.cgi?id=71132 Patch adds DefaultTimeoutStartSec, DefaultTimeoutStopSec, DefaultRestartSec configuration options to manager configuration file. --- man/systemd-system.conf.xml | 24 +++++++++++++++++++++++- man/systemd.mount.xml | 4 ++-- man/systemd.service.xml | 6 ++++-- man/systemd.socket.xml | 4 ++-- man/systemd.swap.xml | 4 ++-- 5 files changed, 33 insertions(+), 9 deletions(-) (limited to 'man') diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml index e8cf8a9cb2..c1f26484ee 100644 --- a/man/systemd-system.conf.xml +++ b/man/systemd-system.conf.xml @@ -61,7 +61,6 @@ otherwise user.conf. These configuration files contain a few settings controlling basic manager operations. - @@ -94,6 +93,29 @@ arguments. + + DefaultTimeoutStartSec= + DefaultTimeoutStopSec= + DefaultRestartSec= + + Configures the default + time-outs for starting and stopping of + units, as well as the default time to + sleep between automatic restarts of a + units, as configured per-unit in + TimeoutStartSec=, + TimeoutStopSec= and + RestartSec= (for + service units see + systemd.service5 + for details on the per-unit + settings). For non-service units + DefaultTimeoutStartSec= + sets the default + TimeoutSec= value. + + + CPUAffinity= diff --git a/man/systemd.mount.xml b/man/systemd.mount.xml index 217289ab75..bed2975509 100644 --- a/man/systemd.mount.xml +++ b/man/systemd.mount.xml @@ -260,8 +260,8 @@ Takes a unit-less value in seconds, or a time span value such as "5min 20s". Pass 0 to disable the timeout - logic. Defaults to - 90s. + logic. Default value is setted up in manager configuration + file via DefaultTimeoutStart=. diff --git a/man/systemd.service.xml b/man/systemd.service.xml index b1e3af2fef..0cb3d9e351 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -524,7 +524,8 @@ Takes a unit-less value in seconds, or a time span value such as "5min 20s". Pass 0 to disable the timeout - logic. Defaults to 90s, except when + logic. Defaults to TimeoutStartSec= in + manager configuration file, except when Type=oneshot is used in which case the timeout is disabled by default. @@ -545,7 +546,8 @@ Takes a unit-less value in seconds, or a time span value such as "5min 20s". Pass 0 to disable the timeout - logic. Defaults to 90s. + logic. Defaults to TimeoutStartSec= in + manager configuration file. diff --git a/man/systemd.socket.xml b/man/systemd.socket.xml index 8c88d9f8aa..1c78562e8a 100644 --- a/man/systemd.socket.xml +++ b/man/systemd.socket.xml @@ -679,8 +679,8 @@ Takes a unit-less value in seconds, or a time span value such as "5min 20s". Pass 0 to disable the timeout - logic. Defaults to - 90s. + logic. Defaults to TimeoutStartSec= in + manager configuration file. diff --git a/man/systemd.swap.xml b/man/systemd.swap.xml index 813ae6c942..13f6c8441a 100644 --- a/man/systemd.swap.xml +++ b/man/systemd.swap.xml @@ -186,8 +186,8 @@ Takes a unit-less value in seconds, or a time span value such as "5min 20s". Pass 0 to disable the timeout - logic. Defaults to - 90s. + logic. Defaults to TimeoutStartSec= in + manager configuration file. -- cgit v1.2.3-54-g00ecf