]> git.ipfire.org Git - thirdparty/libvirt.git/commit
daemons: Support --timeout 0
authorAndrea Bolognani <abologna@redhat.com>
Wed, 1 Apr 2020 16:53:57 +0000 (18:53 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 3 Apr 2020 09:50:27 +0000 (11:50 +0200)
commita1c793ec57160e5e07327b1750ae5e0983987444
treeda6e25f376a6b561eb8136006a06f9651e7a7c89
parent9428c4609c7b23b3afe89566dca9ac237256d3df
daemons: Support --timeout 0

When using systemd we want to take advantage of socket activation
instead of keeping daemons running all the time, so we default to
shutting them down after two minutes of inactivity.

At the same time, we want it to be possible for the admin to opt
out of this behavior and disable timeouts entirely. A very natural
way to do so would be to specify a zero-length timeout, but that's
currently not accepted by the command line parser. Address that.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/locking/lock_daemon.c
src/logging/log_daemon.c
src/remote/remote_daemon.c