[libvirt] [PATCH] Configuring systemd to restart libvirt on failure
Eric Blake
eblake at redhat.com
Wed Jul 31 22:57:07 UTC 2013
On 07/31/2013 06:13 AM, Dan Kenigsberg wrote:
> On Tue, Jul 30, 2013 at 03:32:59PM +0300, Mooli Tayer wrote:
>> 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
>> ---
>> daemon/libvirtd.service.in | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/daemon/libvirtd.service.in b/daemon/libvirtd.service.in
>> index aa5913b..25979ef 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
>
> FWIW, ack by me.
Likewise. I've pushed this now; and we have a full release cycle to
test it for those using libvirt.git.
I tweaked the commit message to mention
https://bugzilla.redhat.com/show_bug.cgi?id=981974
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130731/30b827a0/attachment-0001.sig>
More information about the libvir-list
mailing list