nis: Add support for systemd launch of NIS services
authorKhem Raj <raj.khem@gmail.com>
Tue, 30 Oct 2012 00:28:07 +0000 (17:28 -0700)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:27:12 +0000 (08:27 -0800)
(From meta-openembedded rev: 845f6dccafb6eb9c5e89b7b14319c951f7a96c24)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-systemd/meta-networking/recipes-support/nis/files/domainname.service [new file with mode: 0644]
meta-openembedded/meta-systemd/meta-networking/recipes-support/nis/files/ypbind.service [new file with mode: 0644]
meta-openembedded/meta-systemd/meta-networking/recipes-support/nis/yp-tools_2.12.bbappend [new file with mode: 0644]
meta-openembedded/meta-systemd/meta-networking/recipes-support/nis/ypbind-mt_1.36.bbappend [new file with mode: 0644]

diff --git a/meta-openembedded/meta-systemd/meta-networking/recipes-support/nis/files/domainname.service b/meta-openembedded/meta-systemd/meta-networking/recipes-support/nis/files/domainname.service
new file mode 100644 (file)
index 0000000..21aa92c
--- /dev/null
@@ -0,0 +1,12 @@
+[Unit]
+Description=NIS Domainname
+
+[Service]
+Type=oneshot
+EnvironmentFile=/etc/nisdomainname
+ExecStart=/usr/bin/domainname $NISDOMAINNAME
+RemainAfterExit=true
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/meta-openembedded/meta-systemd/meta-networking/recipes-support/nis/files/ypbind.service b/meta-openembedded/meta-systemd/meta-networking/recipes-support/nis/files/ypbind.service
new file mode 100644 (file)
index 0000000..1f8df42
--- /dev/null
@@ -0,0 +1,14 @@
+[Unit]
+Description=YP Bind
+Requires=domainname.service
+After=domainname.service network.target
+Before=systemd-user-sessions.service
+
+[Service]
+Type=forking
+PIDFile=/var/run/ypbind.pid
+ExecStart=/usr/sbin/ypbind
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/meta-openembedded/meta-systemd/meta-networking/recipes-support/nis/yp-tools_2.12.bbappend b/meta-openembedded/meta-systemd/meta-networking/recipes-support/nis/yp-tools_2.12.bbappend
new file mode 100644 (file)
index 0000000..041ca83
--- /dev/null
@@ -0,0 +1,12 @@
+inherit systemd
+
+PRINC := "${@int(PRINC) + 1}"
+
+# look for files in the layer first
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += "file://domainname.service"
+
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE = "domainname.service"
+
diff --git a/meta-openembedded/meta-systemd/meta-networking/recipes-support/nis/ypbind-mt_1.36.bbappend b/meta-openembedded/meta-systemd/meta-networking/recipes-support/nis/ypbind-mt_1.36.bbappend
new file mode 100644 (file)
index 0000000..14dbaac
--- /dev/null
@@ -0,0 +1,12 @@
+inherit systemd
+
+PRINC := "${@int(PRINC) + 1}"
+
+# look for files in the layer first
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += "file://ypbind.service"
+
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE = "ypbind.service"
+