diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-03-29 03:33:55 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-03-29 03:33:55 +0000 |
commit | d4daa40a7f29de316335e99ec427f25540ab23e7 (patch) | |
tree | e920dbd57b3eb55a5719e4d8d04224a3a0c18823 /etc | |
parent | cb81b85a9e6713b3fb35722dcd9e1198bfd6f857 (diff) | |
download | FreeBSD-src-d4daa40a7f29de316335e99ec427f25540ab23e7.zip FreeBSD-src-d4daa40a7f29de316335e99ec427f25540ab23e7.tar.gz |
History merge after repository restore of netstart,v:
date: 1995/03/26 18:18:59; author: wpaul; state: Exp; lines: +23 -17
Make syslogd work again: in needs to be started in netstart right
before the rest of the system daemons are brought up and *after* the
network interfaces have been configured.
Also fix one other potential problem: the NIS services need to be started
relavively early since some of the other daemons might need them. The
automounter is a good example: if you use amd with NIS-based maps, you'd
better have NIS running before you start it. :) I think mountd might
need it too, now that netgroups can be read via NIS as well.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/netstart | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/etc/netstart b/etc/netstart index c86a4e0..e0b4001 100755 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: netstart,v 1.22 1995/03/21 15:20:45 jkh Exp $ +# $Id: netstart,v 1.23 1995/03/29 03:28:08 rgrimes Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # my-name is my symbolic name @@ -44,6 +44,12 @@ fi # use loopback, not the wire # route add $hostname localhost +# The syslog daemon needs to be started as soon as possible in order +# to capture any messages generated by the other system daemons. +echo -n Starting system logger: +rm -f /dev/log +echo ' syslogd.'; syslogd + echo -n starting network daemons: # Portmapper should always be run, to provide RPC services for inetd. @@ -65,6 +71,22 @@ if [ "X${namedflags}" != "XNO" ]; then echo -n ' named'; named $namedflags 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 + # $ntpdate and $xntpdflags are imported from /etc/sysconfig. # If $ntpdate != NO, run ntpdate $ntpdate to set the date correctly. # If $xntpdflags != NO, start xntpd. @@ -120,22 +142,6 @@ if [ "X${kerberos_server}" = X"YES" ]; then (sleep 20; /usr/sbin/kadmind -n >/dev/null 2>&1 &) & 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 '.' |