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.
This commit is contained in:
parent
c80147acd5
commit
27aeb9321a
40
etc/netstart
40
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 '.'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user