On Wed, 6 May 1998, Richard Jensen wrote:
> Is there a way to configure the system so that domainname
> persists across a system restart?
>
> Thanks for any help.
>
> <Richard>
>
> Richard Jensen
> mailto:[EMAIL PROTECTED]
>
To fix this problem I edited my ypbind file.... here's a copy if you'd
like it.
#!/bin/sh
#
# ypbind: Starts the upbind Daemon
#
# Version: @(#) /etc/rc.d/init.d/ypbind.init 1.0
#
# chkconfig: - 70 30
# description: This is a daemon which runs on NIS/YP clients and binds them \
# to a NIS domain. It must be running for systems based on glibc \
# to work as NIS clients, but it should not be enabled on systems \
# which are not using NIS.
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
echo -n "Binding to the NIS domain... "
### Added by Keith Schoenefeld
if [ -r /etc/defaultdomain ] ; then
domainname `cat /etc/defaultdomain`
fi
### End of additions by Keith Schoenefeld
daemon ypbind
echo
touch /var/lock/subsys/ypbind
;;
stop)
echo -n "Shuting down NIS services: "
killproc ypbind
rm -f /var/lock/subsys/ypbind
echo
;;
status)
status ypbind
;;
restart)
$0 stop
$0 start
;;
*)
echo "*** Usage: ypbind {start|stop|status|restart}"
exit 1
esac
exit 0
# End of ypbind file.
And here is the file I put in /etc/defaultdomain:
keh
Hope this helps...
-- Keith Schoenefeld
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Keith Schoenefeld [EMAIL PROTECTED] ~
~ Workstation Manager (918) 631-2548 ~
~ The University of Tulsa ~
~ Keplinger Hall Room #L1-A ~
~ 600 S. College Ave ~
~ Tulsa, OK 74104-3189 ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.