1993-06-20 13:41:45 +00:00
|
|
|
#
|
|
|
|
# site-specific startup actions, daemons
|
|
|
|
#
|
|
|
|
# @(#)rc.local 5.4 (Berkeley) 12/14/90
|
|
|
|
#
|
|
|
|
|
|
|
|
T=/tmp/_motd
|
|
|
|
rm -f $T
|
1994-08-31 05:31:42 +00:00
|
|
|
uname -rs > $T
|
1993-06-20 13:41:45 +00:00
|
|
|
echo "" >> $T
|
|
|
|
sed '1,/^$/d' < /etc/motd >> $T
|
|
|
|
cp $T /etc/motd
|
1994-06-03 08:54:35 +00:00
|
|
|
chmod 644 /etc/motd
|
1993-06-20 13:41:45 +00:00
|
|
|
rm -f $T
|
|
|
|
|
|
|
|
echo -n 'starting local daemons:'
|
|
|
|
|
|
|
|
# Kerberos runs ONLY on the Kerberos server machine
|
1995-01-25 05:06:34 +00:00
|
|
|
if [ X"${kerberos_server}" = X"YES" ]; then
|
1993-06-20 13:41:45 +00:00
|
|
|
echo -n ' kerberos'; kerberos >> /var/log/kerberos.log &
|
1995-01-25 05:06:34 +00:00
|
|
|
if [ -x /usr/sbin/kadmind ]; then
|
1995-01-26 05:25:52 +00:00
|
|
|
echo -n ' kadmind'; (sleep 20; /usr/sbin/kadmind -n >/dev/null 2>&1 &) &
|
1995-01-25 05:06:34 +00:00
|
|
|
fi
|
1993-06-20 13:41:45 +00:00
|
|
|
fi
|
|
|
|
|
1995-02-08 16:42:12 +00:00
|
|
|
# Start ypserv if we're an NIS server.
|
1995-02-03 23:54:07 +00:00
|
|
|
if [ X"${nis_serverflags}" != X"NO" ]; then
|
1995-02-08 16:42:12 +00:00
|
|
|
echo -n ' ypserv'; ypserv $nis_serverflags
|
1995-02-03 23:54:07 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Run yppasswdd only on the NIS master server
|
|
|
|
if [ X"${yppasswddflags}" != X"NO" ]; then
|
|
|
|
echo -n ' yppasswdd'; yppasswdd $yppasswddflags
|
|
|
|
fi
|
|
|
|
|
1995-02-08 16:42:12 +00:00
|
|
|
# Start ypbind if we're an NIS client
|
|
|
|
if [ X"${nis_clientflags}" != X"NO" ]; then
|
|
|
|
echo -n ' ypbind'; ypbind $nis_clientflags
|
1995-02-03 23:54:07 +00:00
|
|
|
fi
|
|
|
|
|
1994-09-26 20:23:48 +00:00
|
|
|
# For loading fonts/keyboard example look in /usr/share/examples/syscons
|
|
|
|
# directory
|
|
|
|
|
1993-06-20 13:41:45 +00:00
|
|
|
echo '.'
|