]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
remote: increase daemon shutdown timer to 2 minutes
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 18 Jul 2019 14:50:42 +0000 (15:50 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 19 Jul 2019 13:33:47 +0000 (14:33 +0100)
Shutting down the daemon after 30 seconds of being idle is a little bit
too aggressive. Especially when using 'virsh' in single-shot mode, as
opposed to interactive shell mode, it would not be unusual to have
more than 30 seconds between commands. This will lead to the daemon
shutting down and starting up between a series of commands.

Increasing the shutdown timer to 2 minutes will make it less likely that
the daemon will shutdown while the user is in the middle of a series of
commands.

Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/remote/libvirtd.service.in
src/rpc/virnetsocket.c

index 2e51429e7a1554c246a1b03360d0c04938e89eae..3ddf0e229b90dbfaa714eb9535c2f0e538cde3cd 100644 (file)
@@ -25,7 +25,7 @@ EnvironmentFile=-/etc/sysconfig/libvirtd
 # 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 30 $LIBVIRTD_ARGS
+ExecStart=@sbindir@/libvirtd --timeout 120 $LIBVIRTD_ARGS
 ExecReload=/bin/kill -HUP $MAINPID
 KillMode=process
 Restart=on-failure
index 34a9947eb307a6c1d6fa647949c192ea8f1ca365..3282bc0817ba0bdcdd2575a4cc7d99397ef42e3c 100644 (file)
@@ -137,7 +137,7 @@ static int virNetSocketForkDaemon(const char *binary)
 {
     int ret;
     virCommandPtr cmd = virCommandNewArgList(binary,
-                                             "--timeout=30",
+                                             "--timeout=120",
                                              NULL);
 
     virCommandAddEnvPassCommon(cmd);