From patchwork Mon Jan 14 18:42:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [meta-oe,meta-systemd,3/4] portmap: Add systemd service Date: Mon, 14 Jan 2013 18:42:55 -0000 From: Andrei Gherzan X-Patchwork-Id: 42603 Message-Id: <1358188976-14581-3-git-send-email-andrei.gherzan@windriver.com> To: Cc: Andrei Gherzan Signed-off-by: Andrei Gherzan --- .../portmap/portmap/portmap.service | 10 ++++++++++ .../portmap/portmap_6.0.bbappend | 11 +++++++++++ 2 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 meta-systemd/meta-oe/recipes-connectivity/portmap/portmap/portmap.service create mode 100644 meta-systemd/meta-oe/recipes-connectivity/portmap/portmap_6.0.bbappend diff --git a/meta-systemd/meta-oe/recipes-connectivity/portmap/portmap/portmap.service b/meta-systemd/meta-oe/recipes-connectivity/portmap/portmap/portmap.service new file mode 100644 index 0000000..cffb56c --- /dev/null +++ b/meta-systemd/meta-oe/recipes-connectivity/portmap/portmap/portmap.service @@ -0,0 +1,10 @@ +[Unit] +Description=Portmap + +[Service] +Type=oneshot +ExecStart=/sbin/portmap -l +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target diff --git a/meta-systemd/meta-oe/recipes-connectivity/portmap/portmap_6.0.bbappend b/meta-systemd/meta-oe/recipes-connectivity/portmap/portmap_6.0.bbappend new file mode 100644 index 0000000..c0276a3 --- /dev/null +++ b/meta-systemd/meta-oe/recipes-connectivity/portmap/portmap_6.0.bbappend @@ -0,0 +1,11 @@ +FILESEXTRAPATHS := "${THISDIR}/${PN}" + +PRINC := "${@int(PRINC) + 1}" + +inherit systemd + +SYSTEMD_PACKAGES = "${PN}-systemd" +SYSTEMD_SERVICE = "portmap.service" +SYSTEMD_AUTO_ENABLE = "disable" + +SRC_URI_append = " file://portmap.service"