summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-03-29 03:28:08 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-03-29 03:28:08 +0000
commit798e0d1de1857226f2aba73307cc77eb18abf315 (patch)
treef34c81ae5eb76329a41728a008acce7724fd3fa3 /etc
parent8bdafddcb6fb8d43c51352c76bd289058503ac56 (diff)
downloadFreeBSD-src-798e0d1de1857226f2aba73307cc77eb18abf315.zip
FreeBSD-src-798e0d1de1857226f2aba73307cc77eb18abf315.tar.gz
History merge after repository restore of netstart,v:
date: 1995/03/23 01:25:18; author: jkh; state: Exp; Another pass through our rc files in an attempt to eliminate historical crufy and generally make all of this easier to understand and modify.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/netstart99
1 files changed, 97 insertions, 2 deletions
diff --git a/etc/netstart b/etc/netstart
index cafaeea..c86a4e0 100755
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,13 +1,12 @@
#!/bin/sh -
#
-# $Id: netstart,v 1.21 1995/03/16 16:57:59 wollman Exp $
+# $Id: netstart,v 1.22 1995/03/21 15:20:45 jkh Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# my-name is my symbolic name
# my-netmask is specified in /etc/networks
#
if [ -z "`hostname -s`" ] ; then
- hostname=`cat /etc/myname`
hostname $hostname
fi
@@ -44,3 +43,99 @@ fi
# use loopback, not the wire
# route add $hostname localhost
+
+echo -n starting network daemons:
+
+# 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
+
+# $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
+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
+
+# 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 '.'
+
OpenPOWER on IntegriCloud