summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-10-29 17:28:48 -0700
committerKhem Raj <raj.khem@gmail.com>2013-01-08 09:31:52 -0800
commitdc75cb086d6f3c79c4ab2371ac36e9c829032e94 (patch)
treed1b53568bd6a78f2d571a0e3a2b265e5101a1989
parent845f6dccafb6eb9c5e89b7b14319c951f7a96c24 (diff)
downloadmeta-openembedded-dc75cb086d6f3c79c4ab2371ac36e9c829032e94.tar.gz
rpcbind: Add systemd service unit file
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind/rpcbind.service13
-rw-r--r--meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend12
2 files changed, 25 insertions, 0 deletions
diff --git a/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind/rpcbind.service b/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind/rpcbind.service
new file mode 100644
index 000000000..a028acebe
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind/rpcbind.service
@@ -0,0 +1,13 @@
1[Unit]
2Description=RPC Bind
3After=network.target
4Wants=rpcbind.target
5Before=rpcbind.target
6
7[Service]
8Type=forking
9ExecStart=/usr/sbin/rpcbind
10Restart=always
11
12[Install]
13WantedBy=multi-user.target
diff --git a/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend b/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend
new file mode 100644
index 000000000..0fa7f9761
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend
@@ -0,0 +1,12 @@
1inherit systemd
2
3PRINC := "${@int(PRINC) + 1}"
4
5# look for files in the layer first
6FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
7
8SRC_URI += "file://rpcbind.service"
9
10SYSTEMD_PACKAGES = "${PN}-systemd"
11SYSTEMD_SERVICE = "rpcbind.service"
12