[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 3/3] systemd: xendomains now depends on xen-init-dom0



On Tue, Oct 21, 2014 at 10:56:12AM +0100, Wei Liu wrote:
> Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
> ---
>  tools/hotplug/Linux/systemd/xendomains.service.in |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/hotplug/Linux/systemd/xendomains.service.in 
> b/tools/hotplug/Linux/systemd/xendomains.service.in
> index f88c336..8577317 100644
> --- a/tools/hotplug/Linux/systemd/xendomains.service.in
> +++ b/tools/hotplug/Linux/systemd/xendomains.service.in
> @@ -1,7 +1,7 @@
>  [Unit]
>  Description=Xendomains - start and stop guests on boot and shutdown
>  Requires=xenstored.socket
> -After=xenstored.service xenconsoled.service
> +After=xenstored.service xenconsoled.service xen-init-dom0.service
>  ConditionVirtualization=xen

Having a service listed in After does not mean a service depends on the
other. It just mean: run xendomains.service after xen-init-dom0.service,
but xen-init-dom0.service might not run at all..

If xen-init-dom0.service needs to be run before xendomains.service, you
also need to add it to the Requires list.

So the patch should probably look like this:
-Requires=xenstored.socket
-After=xenstored.service xenconsoled.service
+Requires=xenstored.socket xen-init-dom0.service
+After=xenstored.service xenconsoled.service xen-init-dom0.service

(This also means, if xen-init-dom0 fail, xendomains will not be started
at all.)

-- 
Anthony PERARD

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.