From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] tools/hotplug: update systemd dependency to use service instead of socket Date: Wed, 3 Dec 2014 10:52:52 +0100 Message-ID: <20141203095252.GA25950@aepfle.de> References: <1417534763-25053-1-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1417534763-25053-1-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Wei Liu , Stefano Stabellini , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org On Tue, Dec 02, Olaf Hering wrote: > Since commit 4542ae340d75bd6319e3fcd94e6c9336e210aeef ("tools/hotplug: > systemd xenstored dependencies") all service files use the .socket unit > as startup dependency. While this happens to work for boot it fails for > shutdown because a .socket does not seem to enforce ordering. When > xendomains.service runs during shutdown then systemd will stop > xenstored.service at the same time. > > Change all "xenstored.socket" to "xenstored.service" to let systemd know > that xenstored has to be shutdown after everything else. > > Reported-by: Mark Pryor > Signed-off-by: Olaf Hering > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Ian Campbell > Cc: Wei Liu Tested-by: Olaf Hering I was able to reproduce the hang on shutdown with openSUSE 13.1. This patch fixes the hang. Olaf