From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Luis R. Rodriguez" Subject: [PATCH v6 00/13] xen: add systemd support Date: Thu, 12 Jun 2014 18:18:38 -0700 Message-ID: <1402622331-4282-1-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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WvG8y-00011f-3J for xen-devel@lists.xenproject.org; Fri, 13 Jun 2014 01:19:00 +0000 Received: by mail-pd0-f172.google.com with SMTP id fp1so1539364pdb.31 for ; Thu, 12 Jun 2014 18:18:56 -0700 (PDT) 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.xenproject.org Cc: "Luis R. Rodriguez" List-Id: xen-devel@lists.xenproject.org From: "Luis R. Rodriguez" Here's my v6 series. It should address all the feedback I've gotten fron the v5 series. I've compile tested and run time tested this on both systemd (OpenSUSE 13.1) and non-systemd systems (Debian testing) with cxenstored and oxenstored preferences. The launcher thing is resolved now by using shell to do the explicit launching for us. This all also goes rebased an testd against today's git tree master branch. Luis R. Rodriguez (13): xenstored: enable usage of config.h on both xenstored and oxenstored cxenstored: add support for systemd active sockets oxenstored: add support for systemd active sockets oxenstored: force FD_CLOEXEC with Unix.set_close_on_exec on LSB init tools/xendomains: make xl the default and remove xm usage tools/xendomains: do space cleanups tools/xendomains: move to libexec and use a smaller init helper autoconf: xen: force a refresh with autoconf autoconf: update m4/pkg.m4 autoconf: xen: move standard path variables to config/Paths.mk.in xencommons: move module list into a generic place autoconf: xen: enable explicit preference option for xenstored preference systemd: add xen systemd service and module files .gitignore | 6 + Makefile | 6 +- README | 77 +++ autogen.sh | 8 +- config/Paths.mk.in | 37 ++ config/Stubdom.mk.in | 1 + config/Tools.mk.in | 6 + config/modules | 16 + configure.ac | 8 +- m4/README.source | 38 ++ m4/paths.m4 | 61 +++ m4/pkg.m4 | 88 +++- m4/systemd.m4 | 123 +++++ m4/xenstored.m4 | 60 +++ stubdom/Makefile | 1 + tools/Rules.mk | 1 + tools/configure.ac | 30 +- tools/hotplug/Linux/Makefile | 45 +- ...ysconfig.xencommons => sysconfig.xencommons.in} | 13 +- .../Linux/init.d/{xencommons => xencommons.in.in} | 24 +- tools/hotplug/Linux/init.d/xendomains | 567 +------------------- tools/hotplug/Linux/systemd/Makefile | 67 +++ tools/hotplug/Linux/systemd/proc-xen.mount.in | 9 + .../Linux/systemd/var-lib-xenstored.mount.in | 13 + .../systemd/xen-qemu-dom0-disk-backend.service.in | 22 + .../hotplug/Linux/systemd/xen-watchdog.service.in | 13 + tools/hotplug/Linux/systemd/xenconsoled.service.in | 20 + tools/hotplug/Linux/systemd/xendomains.service.in | 16 + tools/hotplug/Linux/systemd/xenstored.service.in | 27 + tools/hotplug/Linux/systemd/xenstored.socket.in | 11 + tools/hotplug/Linux/systemd/xenstored_ro.socket.in | 11 + tools/hotplug/Linux/xendomains | 584 +++++++++++++++++++++ tools/ocaml/xenstored/Makefile | 15 +- tools/ocaml/xenstored/systemd.ml | 17 + tools/ocaml/xenstored/systemd.mli | 24 + tools/ocaml/xenstored/systemd_stubs.c | 158 ++++++ tools/ocaml/xenstored/utils.ml | 21 +- tools/ocaml/xenstored/xenstored.ml | 2 + tools/xenstore/Makefile | 7 + tools/xenstore/xenstored_core.c | 110 +++- 40 files changed, 1759 insertions(+), 604 deletions(-) create mode 100644 config/Paths.mk.in create mode 100644 config/modules create mode 100644 m4/README.source create mode 100644 m4/paths.m4 create mode 100644 m4/systemd.m4 create mode 100644 m4/xenstored.m4 rename tools/hotplug/Linux/init.d/{sysconfig.xencommons => sysconfig.xencommons.in} (64%) rename tools/hotplug/Linux/init.d/{xencommons => xencommons.in.in} (82%) create mode 100644 tools/hotplug/Linux/systemd/Makefile create mode 100644 tools/hotplug/Linux/systemd/proc-xen.mount.in create mode 100644 tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in create mode 100644 tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in create mode 100644 tools/hotplug/Linux/systemd/xen-watchdog.service.in create mode 100644 tools/hotplug/Linux/systemd/xenconsoled.service.in create mode 100644 tools/hotplug/Linux/systemd/xendomains.service.in create mode 100644 tools/hotplug/Linux/systemd/xenstored.service.in create mode 100644 tools/hotplug/Linux/systemd/xenstored.socket.in create mode 100644 tools/hotplug/Linux/systemd/xenstored_ro.socket.in create mode 100644 tools/hotplug/Linux/xendomains create mode 100644 tools/ocaml/xenstored/systemd.ml create mode 100644 tools/ocaml/xenstored/systemd.mli create mode 100644 tools/ocaml/xenstored/systemd_stubs.c -- 2.0.0.rc3.18.g00a5b79