summaryrefslogtreecommitdiffstats
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
parent4fe188b085500a9b56294b65c7537ccd88587b83 (diff)
downloadmeta-openembedded-2dbefd2915663e609d1c343ac58cf0960080b4d0.tar.gz
portmap: Add systemd service
Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-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 @@
1[Unit]
2Description=Portmap
3
4[Service]
5Type=oneshot
6ExecStart=/sbin/portmap -l
7RemainAfterExit=yes
8
9[Install]
10WantedBy=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 @@
1FILESEXTRAPATHS := "${THISDIR}/${PN}"
2
3PRINC := "${@int(PRINC) + 1}"
4
5inherit systemd
6
7SYSTEMD_PACKAGES = "${PN}-systemd"
8SYSTEMD_SERVICE = "portmap.service"
9SYSTEMD_AUTO_ENABLE = "disable"
10
11SRC_URI_append = " file://portmap.service"