diff options
| author | Khem Raj <raj.khem@gmail.com> | 2012-10-29 17:28:07 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2013-01-08 09:31:52 -0800 |
| commit | 845f6dccafb6eb9c5e89b7b14319c951f7a96c24 (patch) | |
| tree | 4f9906c2157a76690ac0350bd902e0c112c988bd /meta-systemd | |
| parent | 6f86cfec550105c60097b91434ab1ae54614265f (diff) | |
| download | meta-openembedded-845f6dccafb6eb9c5e89b7b14319c951f7a96c24.tar.gz | |
nis: Add support for systemd launch of NIS services
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-systemd')
4 files changed, 50 insertions, 0 deletions
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 0000000000..21aa92cb36 --- /dev/null +++ b/meta-systemd/meta-networking/recipes-support/nis/files/domainname.service | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=NIS Domainname | ||
| 3 | |||
| 4 | [Service] | ||
| 5 | Type=oneshot | ||
| 6 | EnvironmentFile=/etc/nisdomainname | ||
| 7 | ExecStart=/usr/bin/domainname $NISDOMAINNAME | ||
| 8 | RemainAfterExit=true | ||
| 9 | |||
| 10 | [Install] | ||
| 11 | WantedBy=multi-user.target | ||
| 12 | |||
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 0000000000..1f8df42af5 --- /dev/null +++ b/meta-systemd/meta-networking/recipes-support/nis/files/ypbind.service | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=YP Bind | ||
| 3 | Requires=domainname.service | ||
| 4 | After=domainname.service network.target | ||
| 5 | Before=systemd-user-sessions.service | ||
| 6 | |||
| 7 | [Service] | ||
| 8 | Type=forking | ||
| 9 | PIDFile=/var/run/ypbind.pid | ||
| 10 | ExecStart=/usr/sbin/ypbind | ||
| 11 | |||
| 12 | [Install] | ||
| 13 | WantedBy=multi-user.target | ||
| 14 | |||
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 0000000000..041ca830e7 --- /dev/null +++ b/meta-systemd/meta-networking/recipes-support/nis/yp-tools_2.12.bbappend | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | inherit systemd | ||
| 2 | |||
| 3 | PRINC := "${@int(PRINC) + 1}" | ||
| 4 | |||
| 5 | # look for files in the layer first | ||
| 6 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
| 7 | |||
| 8 | SRC_URI += "file://domainname.service" | ||
| 9 | |||
| 10 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
| 11 | SYSTEMD_SERVICE = "domainname.service" | ||
| 12 | |||
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 0000000000..14dbaacbba --- /dev/null +++ b/meta-systemd/meta-networking/recipes-support/nis/ypbind-mt_1.36.bbappend | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | inherit systemd | ||
| 2 | |||
| 3 | PRINC := "${@int(PRINC) + 1}" | ||
| 4 | |||
| 5 | # look for files in the layer first | ||
| 6 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
| 7 | |||
| 8 | SRC_URI += "file://ypbind.service" | ||
| 9 | |||
| 10 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
| 11 | SYSTEMD_SERVICE = "ypbind.service" | ||
| 12 | |||
