]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: split system/user job timeouts and make them configurable
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 26 Jan 2021 19:23:12 +0000 (20:23 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 1 Feb 2023 11:52:29 +0000 (11:52 +0000)
commite4c7b5f5173d92cfc5378c75fa3ab7ef0252f32b
tree3c08be3d44d3b68ebe48b9a9ad8d89aa542fcc19
parent15796f28ead21158b3e1d77eb72219b2cdb1230c
core: split system/user job timeouts and make them configurable

Config options are -Ddefault-timeout-sec= and -Ddefault-user-timeout-sec=.
Existing -Dupdate-helper-user-timeout= is renamed to -Dupdate-helper-user-timeout-sec=
for consistency. All three options take an integer value in seconds. The
renaming and type-change of the option is a small compat break, but it's just
at compile time and result in a clear error message. I also doubt that anyone was
actually using the option.

This commit separates the user manager timeouts, but keeps them unchanged at 90 s.
The timeout for the user manager is set to 4/3*user-timeout, which means that it
is still 120 s.

Fedora wants to experiment with lower timeouts, but doing this via a patch would
be annoying and more work than necessary. Let's make this easy to configure.
13 files changed:
man/custom-entities.ent.in
man/systemd-system.conf.xml
man/systemd.service.xml
meson.build
meson_options.txt
src/basic/constants.h
src/core/main.c
src/core/manager.c
src/core/manager.h
src/core/system.conf.in
src/core/user.conf.in
src/rpm/systemd-update-helper.in
units/user@.service.in