From: Ian Campbell Subject: Re: [PATCH v7 8/8] systemd: add xen systemd service and module files Date: Thu, 24 Jul 2014 16:47:49 +0100 Message-ID: <1406216869.25535.30.camel@kazak.uk.xensource.com> References: <1405639699-13494-1-git-send-email-mcgrof@do-not-panic.com> <1405639699-13494-9-git-send-email-mcgrof@do-not-panic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XALFZ-0003cK-Ul for xen-devel@lists.xenproject.org; Thu, 24 Jul 2014 15:48:10 +0000 In-Reply-To: <1405639699-13494-9-git-send-email-mcgrof@do-not-panic.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Luis R. Rodriguez" Cc: Stefano Stabellini , "Luis R. Rodriguez" , Jan =?UTF-8?Q?R=C4=99korajski?= , Ian Jackson , Jacek Konieczny , M A Young , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-07-17 at 16:28 -0700, Luis R. Rodriguez wrote: > diff --git a/Makefile b/Makefile > index 41dabbf..104e39d 100644 > --- a/Makefile > +++ b/Makefile > @@ -216,8 +216,12 @@ uninstall: > rm -f $(D)$(CONFIG_DIR)/udev/rules.d/xen-backend.rules > rm -f $(D)$(CONFIG_DIR)/udev/rules.d/xend.rules > rm -f $(D)$(SYSCONFIG_DIR)/xendomains > + rm -f $(D)$(SBINDIR)/xendomains > rm -f $(D)$(SYSCONFIG_DIR)/xencommons > - rm -rf $(D)/var/run/xen* $(D)/var/lib/xen* > + rm -f $(D)$(XEN_SYSTEMD_DIR)/*.service > + rm -f $(D)$(XEN_SYSTEMD_DIR)/*.mount > + rm -f $(D)$(XEN_SYSTEMD_MODULES_LOAD)/*.conf > + rm -rf $(D)${XEN_RUN_DIR}* $(D)/var/lib/xen* ${} rather than $()? I'm a bit concerned that might expand to nothing and nuke $(D)... > +Systemd and legacy init support s/legacy/SysVinit/ please, no need to be rude about our old friend. TBH, you don't mention sysvinit in this para, so the section could equally be called "Systemd support". > +=============================== > + > +If you have systemd development packages installed you can build binaries > +with systemd support. Systemd support is enabled by default if you have > +systemd development libraries present. If you want to force enable systemd to > +ensure you build binaries with systemd support you can use the --enable-systemd > +flag. Likewise if you want to force disable systemd you can use either of > +these two options: > + > + ./configure --disable-systemd > + ./configure --enable-systemd=no It's nice that both work but users only need to know about one of them, else we are just bamboozling them with needlessly multiple ways to do things. > diff --git a/tools/hotplug/Linux/systemd/Makefile b/tools/hotplug/Linux/systemd/Makefile > new file mode 100644 > index 0000000..dc98b67 > --- /dev/null > +++ b/tools/hotplug/Linux/systemd/Makefile I've not reviewed these files since I don't really know much about systemd specifics. I assume that people who do know them have looked at some point and/or they are derived from existing ones which work and/or they will get fixed eventually if they happen to be not quite right.