mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
remote: move timeout arg into sysconf file
We need to give users the ability to customize the length of the shutdown timeout, or even disable timeouts entirely. Thus we must move the timeout arg into the sysconf file, instead of the service unit. Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
ec7e31ed32
commit
581767a98a
@ -26,11 +26,7 @@ Documentation=https://libvirt.org
|
|||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
EnvironmentFile=-@sysconfdir@/sysconfig/libvirtd
|
EnvironmentFile=-@sysconfdir@/sysconfig/libvirtd
|
||||||
# libvirtd.service is set to run on boot so that autostart of
|
ExecStart=@sbindir@/libvirtd $LIBVIRTD_ARGS
|
||||||
# VMs can be performed. We don't want it to stick around if
|
|
||||||
# unused though, so we set a timeout. The socket activation
|
|
||||||
# then ensures it gets started again if anything needs it
|
|
||||||
ExecStart=@sbindir@/libvirtd --timeout 120 $LIBVIRTD_ARGS
|
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
# Customizations for the libvirtd.service systemd unit
|
# Customizations for the libvirtd.service systemd unit
|
||||||
|
|
||||||
# Listen for TCP/IP connections. This is not required if using systemd
|
# Default behaviour is for libvirtd.service to start on boot
|
||||||
# socket activation.
|
# so that VM autostart can be performed. We then want it to
|
||||||
# NB. must setup TLS/SSL keys prior to using this
|
# shutdown again if nothing was started and rely on systemd
|
||||||
|
# socket activation to start it again when some client app
|
||||||
|
# connects.
|
||||||
|
LIBVIRTD_ARGS="--timeout 120"
|
||||||
|
|
||||||
|
# If systemd socket activation is disabled, then the following
|
||||||
|
# can be used to listen on TCP/TLS sockets
|
||||||
#LIBVIRTD_ARGS="--listen"
|
#LIBVIRTD_ARGS="--listen"
|
||||||
|
|
||||||
# Override Kerberos service keytab for SASL/GSSAPI
|
# Override Kerberos service keytab for SASL/GSSAPI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user