diff options
author | Andrei Gherzan <andrei.gherzan@windriver.com> | 2013-01-14 18:42:55 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-01-17 14:18:15 +0100 |
commit | 2dbefd2915663e609d1c343ac58cf0960080b4d0 (patch) | |
tree | 6a5f8fb38d264d3cd67fe0b55b00221ce97b400c | |
parent | 4fe188b085500a9b56294b65c7537ccd88587b83 (diff) | |
download | meta-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.service | 10 | ||||
-rw-r--r-- | meta-systemd/oe-core/recipes-connectivity/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 000000000..cffb56c1d --- /dev/null +++ b/meta-systemd/oe-core/recipes-connectivity/portmap/portmap/portmap.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=Portmap | ||
3 | |||
4 | [Service] | ||
5 | Type=oneshot | ||
6 | ExecStart=/sbin/portmap -l | ||
7 | RemainAfterExit=yes | ||
8 | |||
9 | [Install] | ||
10 | 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 @@ | |||
1 | FILESEXTRAPATHS := "${THISDIR}/${PN}" | ||
2 | |||
3 | PRINC := "${@int(PRINC) + 1}" | ||
4 | |||
5 | inherit systemd | ||
6 | |||
7 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
8 | SYSTEMD_SERVICE = "portmap.service" | ||
9 | SYSTEMD_AUTO_ENABLE = "disable" | ||
10 | |||
11 | SRC_URI_append = " file://portmap.service" | ||