mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
nis: Add support for systemd launch of NIS services
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
@@ -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"
|
||||||
|
|
||||||
@@ -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"
|
||||||
|
|
||||||
Reference in New Issue
Block a user