diff options
author | wollman <wollman@FreeBSD.org> | 1995-03-16 16:58:01 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-03-16 16:58:01 +0000 |
commit | 80a34ebfdf2ad53283c719aa90cdbf45be5b70d2 (patch) | |
tree | 31a9ac2046858b62ad12bc72021374e24c7729cc /etc/rc | |
parent | b6beceae27e1650af0e5a1ee94bb83a629d6530a (diff) | |
download | FreeBSD-src-80a34ebfdf2ad53283c719aa90cdbf45be5b70d2.zip FreeBSD-src-80a34ebfdf2ad53283c719aa90cdbf45be5b70d2.tar.gz |
Semi-major RC file cleanup:
- Do ntp right
- Move recenrly-added and long-standing junk from rc.local into rc, so
. that rc.local truly is LOCAL.
- Fix named invocation to use the correct boot file location.
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 49 |
1 files changed, 36 insertions, 13 deletions
@@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.44 1995/01/24 16:49:14 jkh Exp $ +# $Id: rc,v 1.45 1995/01/26 19:04:29 jkh Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -175,26 +175,25 @@ elif [ X"${routedflags}" != X"NO" ]; then echo -n ' routed'; routed $routedflags fi -if [ X${name_server} = X"YES" -a -r /etc/named.boot ]; then - echo -n ' named'; named +if [ X${name_server} = X"YES" -a -r /etc/namedb/named.boot ]; then + echo -n ' named'; named -b /etc/namedb/named.boot fi # $ntpdate and $xntpdflags are imported from /etc/netstart. # If $ntpdate != NO, run ntpdate $ntpdate to set the date correctly. # If $xntpdflags != NO, start xntpd. -if [ X"${ntpdate}" != X"NO" ]; then - echo ' ntpdate'; ntpdate $ntpdate -fi - -if [ X"${xntpdflags}" != X"NO" ]; then +if [ X"${ntpdate}" != X"NO" -o X"${xntpdflags}" != X"NO" ]; then if [ X"${tickadjflags}" != X"NO" ]; then - echo 'adjusting kernel for xntpd'; tickadj ${tickadjflags--A} + echo -n ' tickadj'; tickadj ${tickadjflags--Aq} fi - echo 'starting xntpd'; xntpd ${xntpdflags} -fi -if [ X"${ntpdate}" != X"NO" -o X"${xntpdflags}" != X"NO" ]; then - echo -n 'starting more network daemons:' + if [ X"${ntpdate}" != X"NO" ]; then + echo -n ' ntpdate'; ntpdate ${ntpdate} + fi + + if [ X"${xntpdflags}" != X"NO" ]; then + echo -n ' xntpd'; xntpd ${xntpdflags} + fi fi # $rwhod is imported from /etc/netstart; @@ -224,6 +223,30 @@ if [ X"${sendmail_flags}" != X"NO" -a -r /etc/sendmail.cf ]; then echo -n ' sendmail'; sendmail ${sendmail_flags} fi +# Kerberos runs ONLY on the Kerberos server machine +if [ X"${kerberos_server}" = X"YES" ]; then + echo -n ' kerberos'; kerberos >> /var/log/kerberos.log & + echo -n ' kadmind'; \ + (sleep 20; /usr/sbin/kadmind -n >/dev/null 2>&1 &) & + fi +fi + +# Start ypserv if we're an NIS server. +# Run yppasswdd only on the NIS master server +if [ X"${nis_serverflags}" != X"NO" ]; then + echo -n ' ypserv'; ypserv $nis_serverflags + + if [ X"${yppasswddflags}" != X"NO" ]; then + echo -n ' yppasswdd'; yppasswdd $yppasswddflags + fi +fi + + +# Start ypbind if we're an NIS client +if [ X"${nis_clientflags}" != X"NO" ]; then + echo -n ' ypbind'; ypbind $nis_clientflags +fi + echo -n ' inetd'; inetd echo '.' |