aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--initscripts.spec7
-rw-r--r--po/Makefile1
-rwxr-xr-xusr/lib/systemd/nis-domainname9
-rw-r--r--usr/lib/systemd/system/nis-domainname.service13
4 files changed, 3 insertions, 27 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 0a3209b4..c2e1087d 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -131,7 +131,7 @@ touch %{buildroot}%{_sbindir}/ifdown
# ---------------
%post
-%systemd_post nis-domainname.service import-state.service loadmodules.service readonly-root.service
+%systemd_post import-state.service loadmodules.service readonly-root.service
chkconfig --add network > /dev/null 2>&1 || :
chkconfig --add netconsole > /dev/null 2>&1 || :
@@ -146,7 +146,7 @@ chkconfig --add netconsole > /dev/null 2>&1 || :
# ---------------
%preun
-%systemd_preun nis-domainname.service import-state.service loadmodules.service readonly-root.service
+%systemd_preun import-state.service loadmodules.service readonly-root.service
if [ $1 -eq 0 ]; then
chkconfig --del network > /dev/null 2>&1 || :
@@ -157,7 +157,7 @@ fi
# ---------------
%postun
-%systemd_postun nis-domainname.service import-state.service loadmodules.service readonly-root.service
+%systemd_postun import-state.service loadmodules.service readonly-root.service
# === PACKAGING INSTRUCTIONS ==================================================
@@ -213,7 +213,6 @@ fi
%{_prefix}/lib/systemd/import-state
%{_prefix}/lib/systemd/loadmodules
-%{_prefix}/lib/systemd/nis-domainname
%{_prefix}/lib/systemd/readonly-root
%{_prefix}/lib/systemd/system/*
%{_prefix}/lib/udev/rename_device
diff --git a/po/Makefile b/po/Makefile
index 0855db87..49a403f5 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -31,7 +31,6 @@ POTFILES = $(shell ls ../network-scripts/* | grep -v ifcfg-) \
..$(sbindir)/service \
..$(libdir)/systemd/import-state \
..$(libdir)/systemd/loadmodules \
- ..$(libdir)/systemd/nis-domainname \
..$(libdir)/systemd/readonly-root \
..$(sysconfdir)/rc.d/init.d/*\
diff --git a/usr/lib/systemd/nis-domainname b/usr/lib/systemd/nis-domainname
deleted file mode 100755
index 5c934584..00000000
--- a/usr/lib/systemd/nis-domainname
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/bash
-. /etc/sysconfig/network
-
-if [ -n "${NISDOMAIN}" ] && [ -x /usr/bin/domainname ]; then
- domainname ${NISDOMAIN}
- exit $?
-fi
-
-exit 0
diff --git a/usr/lib/systemd/system/nis-domainname.service b/usr/lib/systemd/system/nis-domainname.service
deleted file mode 100644
index 3f8412ae..00000000
--- a/usr/lib/systemd/system/nis-domainname.service
+++ /dev/null
@@ -1,13 +0,0 @@
-[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
-
-[Service]
-ExecStart=/usr/lib/systemd/nis-domainname
-Type=oneshot
-RemainAfterExit=yes
-
-[Install]
-WantedBy=sysinit.target