summaryrefslogtreecommitdiffstats
path: root/etc/netstart
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-03-30 06:26:19 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-03-30 06:26:19 +0000
commit01cb869dd82d6a110d6dea4aacdbded66d1145d9 (patch)
tree0af61dec31ff81daaab11ec279899a09ce277e98 /etc/netstart
parentad43fa83a6410dd430b4d048943c2f0ab0a82174 (diff)
downloadFreeBSD-src-01cb869dd82d6a110d6dea4aacdbded66d1145d9.zip
FreeBSD-src-01cb869dd82d6a110d6dea4aacdbded66d1145d9.tar.gz
This is the rc work as provided by pts, I will me makeing some additional
changes to it based upon other outstanding bug reports and commits made after his work. Comments: (a) sysconfig is still used to do all configuration. I was not going to change that out from under you.... a user never need edit netstart or rc* unless they're being very weird. (b) rc.maint has been folded back into rc. It is just unworkable as a separate chunk because of ordering bogosities (c) netstart does what it says... it starts up enough of the network to get up, it doesn't start every bloody daemon that might talk to a socket... netstart ifconfig's the devices and sets up routing if configured to do so. (d) nfs disks are mounted immediately after netstart completes (e) syslog is started as early as possible (right after nfs) so that error messages can get logged to remote syslog servers properly (f) named is started (there is an argument that says that named should be started before syslogd because if you are the dns server for your domain, you'd like named to resolve remote hosts in syslog.conf, but this is a minority case and the trivial workarround is to put the syslog host in /etc/hosts or use an /etc/resolv.conf -- why? because you want syslog to catch named errors, which is a MUCH more important and likely occurance) (g) NOW all of the rest of the network daemons such as the time stuff, RPC, NIS, NFS, Kerberos and inetd are started (h) the rest of the generic stuff is done (cron/printer/sendmail) (i) shared libraries are set (j) /etc/rc.i386 is run (this does FreeBSD/386 specific stuff like ibcs2, xtend, and all of the syscons stuff (this is actually started as /etc/rc.`uname -m` (k) the syscons stuff has gotten a serious cleaning to make it consistent with rc conventions (l) rc.local has had the comments about syscons removed (they are not relevant to this file now) and the full name of the kernel has been restored to /etc/motd Submitted by: pts
Diffstat (limited to 'etc/netstart')
-rwxr-xr-xetc/netstart110
1 files changed, 12 insertions, 98 deletions
diff --git a/etc/netstart b/etc/netstart
index e0b4001..af2e52a 100755
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: netstart,v 1.23 1995/03/29 03:28:08 rgrimes Exp $
+# $Id: netstart,v 1.24 1995/03/29 03:33:55 rgrimes Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# my-name is my symbolic name
@@ -44,104 +44,18 @@ 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
+if [ "x$gated" != "xNO" -o "x$routedflags" != "xNO" ] ; then
+ echo -n starting routing daemons:
-echo -n starting network daemons:
+ # $gated and $routedflags are imported from /etc/sysconfig.
+ # If $gated == YES, gated is used; otherwise routed.
+ # If $routedflags == NO, routed isn't run.
-# Portmapper should always be run, to provide RPC services for inetd.
-if [ -x /usr/sbin/portmap ]; then
- echo -n ' portmap'; portmap
-fi
-
-# $gated and $routedflags are imported from /etc/sysconfig.
-# If $gated == YES, gated is used; otherwise routed.
-# If $routedflags == NO, routed isn't run.
-if [ "X${gated}" = X"YES" -a -r /etc/gated.conf ]; then
- echo -n ' gated'; gated $gatedflags
-elif [ "X${routedflags}" != X"NO" ]; then
- echo -n ' routed'; routed $routedflags
-fi
-
-# $namedflags is imported from /etc/sysconfig
-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
+ if [ "X${gated}" = X"YES" -a -r /etc/gated.conf ]; then
+ echo -n ' gated'; gated $gatedflags
+ elif [ "X${routedflags}" != X"NO" ]; then
+ echo -n ' routed'; routed $routedflags
+ 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.
-if [ "X${ntpdate}" != X"NO" -o "X${xntpdflags}" != X"NO" ]; then
- if [ "X${tickadjflags}" != X"NO" ]; then
- echo -n ' tickadj'; tickadj ${tickadjflags--Aq}
- fi
-
- if [ "X${ntpdate}" != X"NO" ]; then
- echo -n ' ntpdate'; ntpdate ${ntpdate}
- fi
-
- if [ "X${xntpdflags}" != X"NO" ]; then
- echo -n ' xntpd'; xntpd ${xntpdflags}
- fi
+ echo '.'
fi
-
-# $timedflags is imported from /etc/sysconfig;
-# if $timedflags == NO, timed isn't run.
-if [ "X${timedflags}" != X"NO" ]; then
- echo -n ' timed'; timed $timedflags
-fi
-
-# $rwhod is imported from /etc/sysconfig;
-# if $rwhod is set to YES, rwhod is run.
-if [ "X${rwhod}" = X"YES" ]; then
- echo -n ' rwhod'; rwhod
-fi
-
-if [ "X${nfs_server}" = X"YES" -a -r /etc/exports ]; then
- echo -n ' mountd'; mountd
- echo -n ' nfsd'; nfsd -u -t 4
-fi
-
-if [ "X${nfs_client}" = X"YES" ]; then
- echo -n ' nfsiod'; nfsiod -n 4
-fi
-
-if [ "X${amdflags}" != X"NO" ]; then
- echo -n ' amd'; amd ${amdflags}
-fi
-
-# $sendmail_flags is imported from /etc/sysconfig;
-# if $sendmail_flags is something other than NO, sendmail is run.
-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
-
-echo -n ' inetd'; inetd
-echo '.'
-
OpenPOWER on IntegriCloud