Patchwork [meta-systemd,V2,22/25] nis: Add support for systemd launch of NIS services

login
register
mail settings
Submitter Khem Raj
Date Jan. 6, 2013, 9:12 a.m.
Message ID <1357463568-26241-22-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/42081/
State Accepted, archived
Commit 845f6dccafb6eb9c5e89b7b14319c951f7a96c24
Headers show

Comments

Khem Raj - Jan. 6, 2013, 9:12 a.m.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../recipes-support/nis/files/domainname.service   |   12 ++++++++++++
 .../recipes-support/nis/files/ypbind.service       |   14 ++++++++++++++
 .../recipes-support/nis/yp-tools_2.12.bbappend     |   12 ++++++++++++
 .../recipes-support/nis/ypbind-mt_1.36.bbappend    |   12 ++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 meta-systemd/meta-networking/recipes-support/nis/files/domainname.service
 create mode 100644 meta-systemd/meta-networking/recipes-support/nis/files/ypbind.service
 create mode 100644 meta-systemd/meta-networking/recipes-support/nis/yp-tools_2.12.bbappend
 create mode 100644 meta-systemd/meta-networking/recipes-support/nis/ypbind-mt_1.36.bbappend

Patch

diff --git a/meta-systemd/meta-networking/recipes-support/nis/files/domainname.service b/meta-systemd/meta-networking/recipes-support/nis/files/domainname.service
new file mode 100644
index 0000000..21aa92c
--- /dev/null
+++ b/meta-systemd/meta-networking/recipes-support/nis/files/domainname.service
@@ -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-systemd/meta-networking/recipes-support/nis/files/ypbind.service b/meta-systemd/meta-networking/recipes-support/nis/files/ypbind.service
new file mode 100644
index 0000000..1f8df42
--- /dev/null
+++ b/meta-systemd/meta-networking/recipes-support/nis/files/ypbind.service
@@ -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-systemd/meta-networking/recipes-support/nis/yp-tools_2.12.bbappend b/meta-systemd/meta-networking/recipes-support/nis/yp-tools_2.12.bbappend
new file mode 100644
index 0000000..041ca83
--- /dev/null
+++ b/meta-systemd/meta-networking/recipes-support/nis/yp-tools_2.12.bbappend
@@ -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-systemd/meta-networking/recipes-support/nis/ypbind-mt_1.36.bbappend b/meta-systemd/meta-networking/recipes-support/nis/ypbind-mt_1.36.bbappend
new file mode 100644
index 0000000..14dbaac
--- /dev/null
+++ b/meta-systemd/meta-networking/recipes-support/nis/ypbind-mt_1.36.bbappend
@@ -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"
+