Patchwork [meta-oe,meta-systemd,3/4] portmap: Add systemd service

login
register
mail settings
Submitter Andrei Gherzan
Date Jan. 14, 2013, 6:42 p.m.
Message ID <1358188976-14581-3-git-send-email-andrei.gherzan@windriver.com>
Download mbox | patch
Permalink /patch/42603/
State Accepted, archived
Headers show

Comments

Andrei Gherzan - Jan. 14, 2013, 6:42 p.m.
Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
---
 .../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

Patch

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"