]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
Configuring systemd to restart libvirt on failure
authorMooli Tayer <mtayer@redhat.com>
Tue, 30 Jul 2013 12:32:59 +0000 (15:32 +0300)
committerEric Blake <eblake@redhat.com>
Wed, 31 Jul 2013 22:55:27 +0000 (16:55 -0600)
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 <eblake@redhat.com>
daemon/libvirtd.service.in

index aa5913bc10f6c140bb8cf138522c28fc5cff3abf..25979efd3638a3d337f06a3ef1ed50dae5593868 100644 (file)
@@ -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