[oe-commits] Andrei Gherzan : portmap: Add systemd service

git at git.openembedded.org git at git.openembedded.org
Thu Jan 17 13:20:58 UTC 2013


Module: meta-openembedded.git
Branch: master
Commit: 2dbefd2915663e609d1c343ac58cf0960080b4d0
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=2dbefd2915663e609d1c343ac58cf0960080b4d0

Author: Andrei Gherzan <andrei.gherzan at windriver.com>
Date:   Mon Jan 14 18:42:55 2013 +0000

portmap: Add systemd service

Signed-off-by: Andrei Gherzan <andrei.gherzan at windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 .../portmap/portmap/portmap.service                |   10 ++++++++++
 .../portmap/portmap_6.0.bbappend                   |   11 +++++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/meta-systemd/oe-core/recipes-connectivity/portmap/portmap/portmap.service b/meta-systemd/oe-core/recipes-connectivity/portmap/portmap/portmap.service
new file mode 100644
index 0000000..cffb56c
--- /dev/null
+++ b/meta-systemd/oe-core/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/oe-core/recipes-connectivity/portmap/portmap_6.0.bbappend b/meta-systemd/oe-core/recipes-connectivity/portmap/portmap_6.0.bbappend
new file mode 100644
index 0000000..c0276a3
--- /dev/null
+++ b/meta-systemd/oe-core/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"





More information about the Openembedded-commits mailing list