aboutsummaryrefslogtreecommitdiffstats
path: root/meta-systemd/oe-core
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei.gherzan@windriver.com>2013-01-14 18:42:55 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2013-01-17 14:18:15 +0100
commit2dbefd2915663e609d1c343ac58cf0960080b4d0 (patch)
tree6a5f8fb38d264d3cd67fe0b55b00221ce97b400c /meta-systemd/oe-core
parent4fe188b085500a9b56294b65c7537ccd88587b83 (diff)
downloadmeta-openembedded-2dbefd2915663e609d1c343ac58cf0960080b4d0.tar.gz
meta-openembedded-2dbefd2915663e609d1c343ac58cf0960080b4d0.tar.bz2
meta-openembedded-2dbefd2915663e609d1c343ac58cf0960080b4d0.zip
portmap: Add systemd service
Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-systemd/oe-core')
-rw-r--r--meta-systemd/oe-core/recipes-connectivity/portmap/portmap/portmap.service10
-rw-r--r--meta-systemd/oe-core/recipes-connectivity/portmap/portmap_6.0.bbappend11
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 000000000..cffb56c1d
--- /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 000000000..c0276a391
--- /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"