From dc75cb086d6f3c79c4ab2371ac36e9c829032e94 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 29 Oct 2012 17:28:48 -0700 Subject: rpcbind: Add systemd service unit file Signed-off-by: Khem Raj --- .../recipes-extended/rpcbind/rpcbind/rpcbind.service | 13 +++++++++++++ .../meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind/rpcbind.service create mode 100644 meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend 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 @@ +[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-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 @@ +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" + -- cgit v1.2.3-54-g00ecf