rpcbind: Add systemd service unit file

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2012-10-29 17:28:48 -07:00
parent 845f6dccaf
commit dc75cb086d
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,13 @@
[Unit]
Description=RPC Bind
After=network.target
Wants=rpcbind.target
Before=rpcbind.target
[Service]
Type=forking
ExecStart=/usr/sbin/rpcbind
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,12 @@
inherit systemd
PRINC := "${@int(PRINC) + 1}"
# look for files in the layer first
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://rpcbind.service"
SYSTEMD_PACKAGES = "${PN}-systemd"
SYSTEMD_SERVICE = "rpcbind.service"