Src
|
|
File: /etc/rc2.d/S71rpc (SunOS 5.6)
#
# Start NIS+. Note this needs to be done after keyserv
# has started because NIS+ uses the keyserver for authentication.
#
domain=`domainname`
hostname=`uname -n | cut -d. -f1 | tr '[A-Z]' '[a-z]'`
if [ -d /var/nis -a -x /usr/sbin/rpc.nisd ]; then
if [ -f /var/nis/NIS_COLD_START ]; then
if [ -x /usr/sbin/nis_cachemgr ]; then
/usr/sbin/nis_cachemgr
echo " nis_cachemgr\c"
fi
fi
#
# Note add the option to rpc.nisd if you wish to emulate the NIS (YP)
# service.
#
EMULYP="-Y"
#
# We always start the NIS+ Password Update Daemon. If it finds the NIS+
# server is not a Master it will just exit. It also determines if the
# server is running in NIS (YP) compat mode and automatically registers
# a yppasswdd so NIS (YP) clients can change their passwords.
#
if [ -d /var/nis/data -o -d /var/nis/$hostname ]; then
/usr/sbin/rpc.nisd $EMULYP
echo " rpc.nisd \c"
/usr/sbin/rpc.nispasswdd
fi
Created Processes:
% ps -edf | grep nis root 109 1 1 Apr 02 ? 34:25 /usr/sbin/rpc.nisd -Y root 107 1 0 Apr 02 ? 0:01 /usr/sbin/nis_cachemgr root 111 1 0 Apr 02 ? 0:01 /usr/sbin/rpc.nispasswdd
Src
|
|
Last modified: 08/May/98 (11:53)