portmap: Add systemd service

Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Andrei Gherzan 2013-01-14 18:42:55 +00:00 committed by Martin Jansa
parent 4fe188b085
commit 2dbefd2915
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[Unit]
Description=Portmap
[Service]
Type=oneshot
ExecStart=/sbin/portmap -l
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

View File

@ -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"