summarylogtreecommitdiffstats
path: root/nis-domainname.service
diff options
context:
space:
mode:
Diffstat (limited to 'nis-domainname.service')
-rw-r--r--nis-domainname.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/nis-domainname.service b/nis-domainname.service
new file mode 100644
index 000000000000..8771fed23b81
--- /dev/null
+++ b/nis-domainname.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Read and set NIS domainname from /etc/sysconfig/network
+Before=ypbind.service yppasswdd.service ypserv.service ypxfrd.service sysinit.target
+DefaultDependencies=no
+Conflicts=shutdown.target
+ConditionPathExists=/etc/sysconfig/network
+
+[Service]
+EnvironmentFile=/etc/sysconfig/network
+ExecStart=nisdomainname "${NISDOMAIN}"
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=sysinit.target