portmap: Add systemd service
authorAndrei Gherzan <andrei.gherzan@windriver.com>
Mon, 14 Jan 2013 18:42:55 +0000 (18:42 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:27:23 +0000 (08:27 -0800)
(From meta-openembedded rev: 2dbefd2915663e609d1c343ac58cf0960080b4d0)

Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-systemd/oe-core/recipes-connectivity/portmap/portmap/portmap.service [new file with mode: 0644]
meta-openembedded/meta-systemd/oe-core/recipes-connectivity/portmap/portmap_6.0.bbappend [new file with mode: 0644]

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