From: Daniel P. Berrange Date: Thu, 22 Mar 2012 14:01:12 +0000 (+0000) Subject: Leave all child processes running when stopping systemd service X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=cb640543c86428a9f472e0c425b65e462d118afa;p=libvirt.git Leave all child processes running when stopping systemd service 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 Signed-off-by: Daniel P. Berrange --- diff --git a/daemon/libvirtd.service.in b/daemon/libvirtd.service.in index 8f2458af0c..d6e46ab64d 100644 --- a/daemon/libvirtd.service.in +++ b/daemon/libvirtd.service.in @@ -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