rpcbind: Add systemd service unit file
authorKhem Raj <raj.khem@gmail.com>
Tue, 30 Oct 2012 00:28:48 +0000 (17:28 -0700)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:27:13 +0000 (08:27 -0800)
(From meta-openembedded rev: dc75cb086d6f3c79c4ab2371ac36e9c829032e94)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind/rpcbind.service [new file with mode: 0644]
meta-openembedded/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend [new file with mode: 0644]

diff --git a/meta-openembedded/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind/rpcbind.service b/meta-openembedded/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind/rpcbind.service
new file mode 100644 (file)
index 0000000..a028ace
--- /dev/null
@@ -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
diff --git a/meta-openembedded/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend b/meta-openembedded/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend
new file mode 100644 (file)
index 0000000..0fa7f97
--- /dev/null
@@ -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"
+