diff options
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 '.' |