From: Mooli Tayer Date: Tue, 30 Jul 2013 12:32:59 +0000 (+0300) Subject: Configuring systemd to restart libvirt on failure X-Git-Tag: CVE-2013-4239~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f4a0ebe8c83d9952c30b657e42a08760549eda7;p=thirdparty%2Flibvirt.git Configuring systemd to restart libvirt on failure This will create a respawn behaviour in case libvirt process exits due to nonzero exit code, is terminated by a signal, an operation times out or the configured watchdog timeout is triggered. see http://www.freedesktop.org/software/systemd/man/systemd.service.html and https://bugzilla.redhat.com/show_bug.cgi?id=981974 Signed-off-by: Eric Blake --- diff --git a/daemon/libvirtd.service.in b/daemon/libvirtd.service.in index aa5913bc10..25979efd36 100644 --- a/daemon/libvirtd.service.in +++ b/daemon/libvirtd.service.in @@ -15,6 +15,7 @@ EnvironmentFile=-/etc/sysconfig/libvirtd ExecStart=@sbindir@/libvirtd $LIBVIRTD_ARGS ExecReload=/bin/kill -HUP $MAINPID KillMode=process +Restart=on-failure # Override the maximum number of opened files #LimitNOFILE=2048