]> xenbits.xensource.com Git - libvirt.git/commitdiff
Leave all child processes running when stopping systemd service
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 22 Mar 2012 14:01:12 +0000 (14:01 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 23 Mar 2012 12:46:16 +0000 (12:46 +0000)
Currently the libvirt.service unit file for systemd does not
specify any kill mode. So systemd kills off every process
inside its cgroup. ie all dnsmasq processes, all virtual
machines. This obviously not what we want. Set KillMode=process
so that it only kills the top level process of libvirtd

* daemon/libvirtd.service.in: Add KillMode=process

Reported-By: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
daemon/libvirtd.service.in

index 8f2458af0c06494c435ca0e03f2c86b1d1fe1dcf..d6e46ab64d2b8570838692ade658baa046456eb3 100644 (file)
@@ -15,6 +15,7 @@ Before=libvirt-guests.service
 EnvironmentFile=-/etc/sysconfig/libvirtd
 ExecStart=@sbindir@/libvirtd $LIBVIRTD_ARGS
 ExecReload=/bin/kill -HUP $MAINPID
+KillMode=process
 # Override the maximum number of opened files
 #LimitNOFILE=2048