[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Fixed --enable-systemd on latest Debian stretch. Added xencommons as a systemd.service.
Add back xen-devel On Fri, Apr 01, 2016 at 05:35:17PM +0200, Sjoer van der Ploeg wrote: > Hello, > > Indeed, quotation is not needed inside the AC_DEFINE block. I had already > fixed that in my own branch as I also had forgotten to run autogen.sh, plus > forgotten to add a few other (efi related) checks in the Makefile that I > added on my testbed. > > I added the xencommons systemd service so xendomains would not bail out on > a clean install, check it for yourself make install on a fresh base (I > picked Stretch), xendomains fails to start and it traces back to xencommons > not starting on systemd only systems. > The sysv init script for xendomains depends on xenstored and xenconsoled, and the systemd service file contains the same dependencies. It would be useful to track down which service is not started and explicitly provide the dependency. > The added libsystemd check is because in newer libsystemd there is no > separate libsystemd-daemon anymore. > OK, this needs to be fixed. Wei. > I test on Debian Stretch, but use Gentoo personally. > > Yours, > > Sjoer van der Ploeg > On Apr 1, 2016 5:16 PM, "Wei Liu" <wei.liu2@xxxxxxxxxx> wrote: > > > Hello > > > > On Thu, Mar 31, 2016 at 10:35:25PM +0200, Sjoer van der Ploeg wrote: > > > Signed-off by: Sjoer van der Ploeg <sfjuocekr@xxxxxxxxx> > > > --- > > > m4/systemd.m4 | 15 +++++++++------ > > > tools/configure.ac | 1 + > > > tools/hotplug/Linux/systemd/xencommons.service.in | 13 +++++++++++++ > > > 3 files changed, 23 insertions(+), 6 deletions(-) > > > create mode 100644 tools/hotplug/Linux/systemd/xencommons.service.in > > > > > > diff --git a/m4/systemd.m4 b/m4/systemd.m4 > > > index e4b1aa5..8b86c20 100644 > > > --- a/m4/systemd.m4 > > > +++ b/m4/systemd.m4 > > > @@ -41,7 +41,9 @@ AC_DEFUN([AX_ALLOW_SYSTEMD_OPTS], [ > > > ]) > > > > > > AC_DEFUN([AX_CHECK_SYSTEMD_LIBS], [ > > > - PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon]) > > > + PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon],, [ > > > + PKG_CHECK_MODULES([SYSTEMD], [libsystemd]) > > > + ]) > > > dnl pkg-config older than 0.24 does not set these for > > > dnl PKG_CHECK_MODULES() worth also noting is that as of version 208 > > > dnl of systemd pkg-config --cflags currently yields no extra flags > > yet. > > > @@ -83,19 +85,20 @@ AC_DEFUN([AX_CHECK_SYSTEMD], [ > > > AS_IF([test "x$enable_systemd" != "xno"], [ > > > AS_IF([test "x$systemd" = "xy" ], [ > > > AC_DEFINE([HAVE_SYSTEMD], [1], [Systemd available and > > enabled]) > > > - systemd=y > > > + systemd="y" > > > > I don't think quotation is needed. > > > > > AX_CHECK_SYSTEMD_LIBS() > > > ],[ > > > AS_IF([test "x$enable_systemd" = "xyes"], > > > [AC_MSG_ERROR([Unable to find systemd development > > library])], > > > - [systemd=n]) > > > + [systemd="n"]) > > > ]) > > > - ],[systemd=n]) > > > + ],[systemd="n"]) > > > ]) > > > > > > AC_DEFUN([AX_CHECK_SYSTEMD_ENABLE_AVAILABLE], [ > > > - PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon], [systemd="y"], > > > - [systemd="n"]) > > > + PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon], [systemd="y"], [ > > > + PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [systemd="y"], > > [systemd="n"]) > > > > And this is because stretch now has libsystemd instead of > > libsystemd-daemon? > > > > I'm just trying to understand the issue here. Your commit message is too > > terse. > > > > > + ]) > > > ]) > > > > > > dnl Enables systemd by default and requires a --disable-systemd option > > flag > > > diff --git a/tools/configure.ac b/tools/configure.ac > > > index 5b5dda4..be124f6 100644 > > > --- a/tools/configure.ac > > > +++ b/tools/configure.ac > > > @@ -432,6 +432,7 @@ AS_IF([test "x$systemd" = "xy"], [ > > > hotplug/Linux/systemd/xen-init-dom0.service > > > hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service > > > hotplug/Linux/systemd/xen-watchdog.service > > > + hotplug/Linux/systemd/xencommons.service > > > hotplug/Linux/systemd/xenconsoled.service > > > hotplug/Linux/systemd/xendomains.service > > > hotplug/Linux/systemd/xenstored.service > > > diff --git a/tools/hotplug/Linux/systemd/xencommons.service.in > > b/tools/hotplug/Linux/systemd/xencommons.service.in > > > new file mode 100644 > > > index 0000000..c1fbf8b > > > --- /dev/null > > > +++ b/tools/hotplug/Linux/systemd/xencommons.service.in > > > @@ -0,0 +1,13 @@ > > > +[Unit] > > > +Description=Xencommons - handles loading requiered modules > > > +ConditionPathExists=/proc/xen > > > + > > > +[Service] > > > +Type=oneshot > > > +RemainAfterExit=true > > > +ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities > > > +ExecStart=@CONFIG_DIR@/init.d/xencommons start > > > +ExecStop=@CONFIG_DIR@/init.d/xencommons stop > > > + > > > > Probably not this. We already have discrete service files for systemd. > > How is that broken for you? > > > > Wei. > > > > > +[Install] > > > +WantedBy=multi-user.target > > > -- > > > 2.8.0.rc3 > > > > > > > > > _______________________________________________ > > > Xen-devel mailing list > > > Xen-devel@xxxxxxxxxxxxx > > > http://lists.xen.org/xen-devel > > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |