diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-06-06 09:29:51 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-06-06 13:38:16 +0200 |
commit | a9b837aa34a2d0bff1687427c66bed3b74cf0fed (patch) | |
tree | 3ea6a15ad58fcdd583d1c62d7333f4874f68a8ff /src/hibernate-resume | |
parent | Merge pull request #27933 from mrc0mmand/selinux (diff) | |
download | systemd-a9b837aa34a2d0bff1687427c66bed3b74cf0fed.tar.xz systemd-a9b837aa34a2d0bff1687427c66bed3b74cf0fed.zip |
generators: change TimeoutSec=0 to TimeoutSec=infinity
With these settings we intend to turn off timeouts for possibly
interactive/slow commands. The officially documented way to turn off the
time-outs is to setting them to infinity. So far we set them to zero
here though.
This lead to some confusiong, for example #18224. Let's fix this by
uniformly spelling out TimeoutSec=infinity.
This doesn't change behaviour. It just makes our generated files match
what we document, without relying on historic compat support.
Fixes: #18224
Diffstat (limited to 'src/hibernate-resume')
-rw-r--r-- | src/hibernate-resume/hibernate-resume-generator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hibernate-resume/hibernate-resume-generator.c b/src/hibernate-resume/hibernate-resume-generator.c index be52c21d00..1bcf9d69df 100644 --- a/src/hibernate-resume/hibernate-resume-generator.c +++ b/src/hibernate-resume/hibernate-resume-generator.c @@ -95,7 +95,8 @@ static int process_resume(void) { r = write_drop_in(arg_dest, device_unit, 40, "device-timeout", "# Automatically generated by systemd-hibernate-resume-generator\n\n" - "[Unit]\nJobTimeoutSec=0"); + "[Unit]\n" + "JobTimeoutSec=infinity\n"); if (r < 0) log_warning_errno(r, "Failed to write device timeout drop-in: %m"); |