From 365d5ec941347f54744b9f5fbb7b06cc3949e14a Mon Sep 17 00:00:00 2001 From: Andreas Müller Date: Sun, 10 Jun 2012 21:46:50 +0000 Subject: gateone: move systemd support to meta-systemd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- .../recipes-connectivity/gateone/gateone/gateone.service | 10 ++++++++++ .../meta-oe/recipes-connectivity/gateone/gateone_git.bbappend | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 meta-systemd/meta-oe/recipes-connectivity/gateone/gateone/gateone.service create mode 100644 meta-systemd/meta-oe/recipes-connectivity/gateone/gateone_git.bbappend (limited to 'meta-systemd') diff --git a/meta-systemd/meta-oe/recipes-connectivity/gateone/gateone/gateone.service b/meta-systemd/meta-oe/recipes-connectivity/gateone/gateone/gateone.service new file mode 100644 index 0000000000..7ff60020a0 --- /dev/null +++ b/meta-systemd/meta-oe/recipes-connectivity/gateone/gateone/gateone.service @@ -0,0 +1,10 @@ +[Unit] +Description=GateOne daemon +ConditionPathExists=|/var/lib/gateone + +[Service] +WorkingDirectory=/var/lib/gateone +ExecStart=/usr/bin/python gateone.py + +[Install] +WantedBy=multi-user.target diff --git a/meta-systemd/meta-oe/recipes-connectivity/gateone/gateone_git.bbappend b/meta-systemd/meta-oe/recipes-connectivity/gateone/gateone_git.bbappend new file mode 100644 index 0000000000..dd5fea1a96 --- /dev/null +++ b/meta-systemd/meta-oe/recipes-connectivity/gateone/gateone_git.bbappend @@ -0,0 +1,11 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PRINC := "${@int(PRINC) + 1}" + +inherit systemd + +SRC_URI += "file://gateone.service" + +NATIVE_SYSTEMD_SUPPORT = "1" +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE = "gateone.service" -- cgit v1.2.3-54-g00ecf