1997-04-27 03:59:19 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
1999-08-27 22:15:15 +00:00
|
|
|
# $Id: rc.network,v 1.56 1999/08/25 16:01:37 sheldonh Exp $
|
1997-04-27 03:59:19 +00:00
|
|
|
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
|
|
|
|
|
|
|
# Note that almost all the user-configurable behavior is no longer in
|
|
|
|
# this file, but rather in /etc/rc.conf. Please check that file
|
|
|
|
# first before contemplating any changes here. If you do need to change
|
|
|
|
# this file for some reason, we would like to know about it.
|
|
|
|
|
|
|
|
# First pass startup stuff.
|
|
|
|
|
|
|
|
network_pass1() {
|
|
|
|
echo -n 'Doing initial network setup:'
|
|
|
|
# Set the host name if it is not already set
|
|
|
|
if [ -z "`hostname -s`" ] ; then
|
1999-08-25 16:01:45 +00:00
|
|
|
hostname ${hostname}
|
1997-04-27 03:59:19 +00:00
|
|
|
echo -n ' hostname'
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Set the domainname if we're using NIS
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ -n "${nisdomainname}" -a "${nisdomainname}" != "NO" ] ; then
|
|
|
|
domainname ${nisdomainname}
|
1997-04-27 03:59:19 +00:00
|
|
|
echo -n ' domain'
|
|
|
|
fi
|
|
|
|
echo '.'
|
|
|
|
|
1998-10-06 19:24:31 +00:00
|
|
|
# Initial ATM interface configuration
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${atm_enable}" = "YES" -a -f /etc/rc.atm ]; then
|
1998-10-06 19:24:31 +00:00
|
|
|
. /etc/rc.atm
|
|
|
|
atm_pass1
|
|
|
|
fi
|
|
|
|
|
1999-01-13 08:20:55 +00:00
|
|
|
# ISDN subsystem startup
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${isdn_enable}" = "YES" -a -f /etc/rc.isdn ]; then
|
1999-01-13 08:20:55 +00:00
|
|
|
. /etc/rc.isdn
|
|
|
|
fi
|
|
|
|
|
1999-01-13 17:32:37 +00:00
|
|
|
# Special options for sppp(4) interfaces go here. These need
|
|
|
|
# to go _before_ the general ifconfig section, since in the case
|
|
|
|
# of hardwired (no link1 flag) but required authentication, you
|
|
|
|
# cannot pass auth parameters down to the already running interface.
|
|
|
|
for ifn in ${sppp_interfaces}; do
|
|
|
|
eval spppcontrol_args=\$spppconfig_${ifn}
|
|
|
|
if [ -n "${spppcontrol_args}" ] ; then
|
|
|
|
# The auth secrets might contain spaces; in order
|
|
|
|
# to retain the quotation, we need to eval them
|
|
|
|
# here.
|
|
|
|
eval spppcontrol ${ifn} ${spppcontrol_args}
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
1997-04-27 03:59:19 +00:00
|
|
|
# Set up all the network interfaces, calling startup scripts if needed
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${network_interfaces}" = "auto" ]; then
|
1999-07-08 18:56:04 +00:00
|
|
|
network_interfaces="`ifconfig -l`"
|
|
|
|
fi
|
|
|
|
for ifn in ${network_interfaces}; do
|
1999-07-07 12:49:47 +00:00
|
|
|
showstat=false
|
1997-04-27 03:59:19 +00:00
|
|
|
if [ -e /etc/start_if.${ifn} ]; then
|
1998-02-20 14:45:06 +00:00
|
|
|
. /etc/start_if.${ifn}
|
1999-07-07 12:49:47 +00:00
|
|
|
showstat=true
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
# Do the primary ifconfig if specified
|
|
|
|
eval ifconfig_args=\$ifconfig_${ifn}
|
|
|
|
if [ -n "${ifconfig_args}" ] ; then
|
1999-07-16 09:26:53 +00:00
|
|
|
# See if we are using DHCP
|
1999-08-27 22:15:15 +00:00
|
|
|
if [ "${ifconfig_args}" = "DHCP" ]; then
|
1999-07-16 09:26:53 +00:00
|
|
|
${dhcp_program} ${dhcp_flags} ${ifn}
|
|
|
|
else
|
|
|
|
ifconfig ${ifn} ${ifconfig_args}
|
|
|
|
fi
|
1999-07-07 12:49:47 +00:00
|
|
|
showstat=true
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
# Check to see if aliases need to be added
|
|
|
|
alias=0
|
|
|
|
while :
|
|
|
|
do
|
|
|
|
eval ifconfig_args=\$ifconfig_${ifn}_alias${alias}
|
|
|
|
if [ -n "${ifconfig_args}" ]; then
|
|
|
|
ifconfig ${ifn} ${ifconfig_args} alias
|
1999-07-07 12:49:47 +00:00
|
|
|
showstat=true
|
1997-04-27 03:59:19 +00:00
|
|
|
alias=`expr ${alias} + 1`
|
|
|
|
else
|
|
|
|
break;
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
# Do ipx address if specified
|
|
|
|
eval ifconfig_args=\$ifconfig_${ifn}_ipx
|
|
|
|
if [ -n "${ifconfig_args}" ]; then
|
|
|
|
ifconfig ${ifn} ${ifconfig_args}
|
1999-07-07 12:49:47 +00:00
|
|
|
showstat=true
|
|
|
|
fi
|
|
|
|
if [ "${showstat}" = "true" ]
|
|
|
|
then
|
|
|
|
ifconfig ${ifn}
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
done
|
1997-09-11 10:59:02 +00:00
|
|
|
|
1999-07-26 15:17:23 +00:00
|
|
|
# Warm up user ppp if required, must happen before natd.
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${ppp_enable}" = "YES" ]; then
|
1999-07-26 15:17:23 +00:00
|
|
|
# Establish ppp mode.
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${ppp_mode}" != "ddial" -a "${ppp_mode}" != "direct" \
|
|
|
|
-a "${ppp_mode}" != "dedicated" ]; then \
|
1999-07-26 15:17:23 +00:00
|
|
|
ppp_mode="auto";
|
|
|
|
fi
|
|
|
|
ppp_command="-${ppp_mode} ";
|
|
|
|
|
|
|
|
# Switch on alias mode?
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${ppp_nat}" = "YES" ]; then
|
1999-08-22 23:26:05 +00:00
|
|
|
ppp_command="${ppp_command} -nat";
|
1999-07-26 15:17:23 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-19 21:15:16 +00:00
|
|
|
echo -n 'Starting ppp: '; ppp ${ppp_command} -quiet ${ppp_profile}
|
1999-07-26 15:17:23 +00:00
|
|
|
fi
|
|
|
|
|
1997-09-11 10:59:02 +00:00
|
|
|
# Initialize IP filtering using ipfw
|
|
|
|
echo ""
|
|
|
|
/sbin/ipfw -q flush > /dev/null 2>&1
|
1998-01-10 03:33:39 +00:00
|
|
|
if [ $? = 0 ] ; then
|
1997-09-11 10:59:02 +00:00
|
|
|
firewall_in_kernel=1
|
1998-01-10 03:33:39 +00:00
|
|
|
else
|
|
|
|
firewall_in_kernel=0
|
1997-09-11 10:59:02 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ ${firewall_in_kernel} = 0 -a "${firewall_enable}" = "YES" ] ; then
|
1998-11-11 05:23:44 +00:00
|
|
|
if kldload ipfw; then
|
1997-09-11 10:59:02 +00:00
|
|
|
firewall_in_kernel=1 # module loaded successfully
|
|
|
|
echo "Kernel firewall module loaded."
|
|
|
|
else
|
|
|
|
echo "Warning: firewall kernel module failed to load."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Load the filters if required
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ ${firewall_in_kernel} = 1 ]; then
|
1999-04-10 10:56:58 +00:00
|
|
|
if [ -z "${firewall_script}" ] ; then
|
|
|
|
firewall_script="/etc/rc.firewall"
|
|
|
|
fi
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ -f ${firewall_script} -a "${firewall_enable}" = "YES" ]; then
|
1999-04-10 10:56:58 +00:00
|
|
|
. ${firewall_script}
|
1999-04-12 15:26:41 +00:00
|
|
|
echo -n 'Firewall rules loaded, starting divert daemons:'
|
1999-03-24 10:28:49 +00:00
|
|
|
|
|
|
|
# Network Address Translation daemon
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${natd_enable}" = "YES" -a -n "${natd_interface}" ]; then
|
1999-03-24 10:28:49 +00:00
|
|
|
if echo ${natd_interface} | \
|
|
|
|
grep -q -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'; then
|
|
|
|
natd_ifarg="-a ${natd_interface}"
|
|
|
|
else
|
|
|
|
natd_ifarg="-n ${natd_interface}"
|
|
|
|
fi
|
|
|
|
echo -n ' natd'; ${natd_program} ${natd_flags} ${natd_ifarg}
|
|
|
|
fi
|
|
|
|
echo '.'
|
1997-09-11 10:59:02 +00:00
|
|
|
else
|
1998-02-14 04:12:23 +00:00
|
|
|
IPFW_DEFAULT=`ipfw l 65535`
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${IPFW_DEFAULT}" = "65535 deny ip from any to any" ]; then
|
1998-02-07 04:56:56 +00:00
|
|
|
echo -n "Warning: kernel has firewall functionality, "
|
|
|
|
echo "but firewall rules are not enabled."
|
|
|
|
echo " All ip services are disabled."
|
|
|
|
fi
|
1997-09-11 10:59:02 +00:00
|
|
|
fi
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
|
1998-10-06 19:24:31 +00:00
|
|
|
# Additional ATM interface configuration
|
|
|
|
if [ -n "${atm_pass1_done}" ]; then
|
|
|
|
atm_pass2
|
|
|
|
fi
|
|
|
|
|
1997-09-11 10:59:02 +00:00
|
|
|
# Configure routing
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${defaultrouter}" != "NO" ] ; then
|
1997-04-27 03:59:19 +00:00
|
|
|
static_routes="default ${static_routes}"
|
|
|
|
route_default="default ${defaultrouter}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Set up any static routes. This should be done before router discovery.
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ -n "${static_routes}" ]; then
|
1997-04-27 03:59:19 +00:00
|
|
|
for i in ${static_routes}; do
|
|
|
|
eval route_args=\$route_${i}
|
|
|
|
route add ${route_args}
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo -n 'Additional routing options:'
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ -n "${tcp_extensions}" -a "${tcp_extensions}" != "YES" ] ; then
|
1997-07-06 00:33:34 +00:00
|
|
|
echo -n ' tcp extensions=NO'
|
1999-06-05 12:06:19 +00:00
|
|
|
sysctl -w net.inet.tcp.rfc1323=0 >/dev/null
|
1997-07-06 00:33:34 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ -n "${log_in_vain}" -a "${log_in_vain}" != "NO" ] ; then
|
1999-03-28 20:36:03 +00:00
|
|
|
echo -n ' log_in_vain=YES'
|
1999-06-05 12:06:19 +00:00
|
|
|
sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null
|
|
|
|
sysctl -w net.inet.udp.log_in_vain=1 >/dev/null
|
1999-03-28 20:36:03 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${icmp_bmcastecho}" = "YES" ]; then
|
1998-09-15 10:49:03 +00:00
|
|
|
echo -n ' broadcast ping responses=YES'
|
1999-06-05 12:06:19 +00:00
|
|
|
sysctl -w net.inet.icmp.bmcastecho=1 >/dev/null
|
1998-09-15 10:49:03 +00:00
|
|
|
fi
|
1999-08-10 09:45:33 +00:00
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${icmp_drop_redirect}" = "YES" ]; then
|
1999-08-10 09:45:33 +00:00
|
|
|
echo -n ' ignore ICMP redirect=YES'
|
|
|
|
sysctl -w net.inet.icmp.drop_redirect=1 >/dev/null
|
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${icmp_log_redirect}" = "YES" ]; then
|
1999-08-10 09:45:33 +00:00
|
|
|
echo -n ' log ICMP redirect=YES'
|
|
|
|
sysctl -w net.inet.icmp.log_redirect=1 >/dev/null
|
|
|
|
fi
|
1998-09-15 10:49:03 +00:00
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${gateway_enable}" = "YES" ]; then
|
1997-05-01 20:28:18 +00:00
|
|
|
echo -n ' IP gateway=YES'
|
1999-06-05 12:06:19 +00:00
|
|
|
sysctl -w net.inet.ip.forwarding=1 >/dev/null
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${forward_sourceroute}" = "YES" ]; then
|
1998-02-16 19:21:32 +00:00
|
|
|
echo -n ' do source routing=YES'
|
1999-06-05 12:06:19 +00:00
|
|
|
sysctl -w net.inet.ip.sourceroute=1 >/dev/null
|
1998-02-16 19:21:32 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${accept_sourceroute}" = "YES" ]; then
|
1998-02-16 19:21:32 +00:00
|
|
|
echo -n ' accept source routing=YES'
|
1999-06-05 12:06:19 +00:00
|
|
|
sysctl -w net.inet.ip.accept_sourceroute=1 >/dev/null
|
1998-02-16 19:21:32 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${tcp_keepalive}" = "YES" ]; then
|
1999-06-05 05:45:57 +00:00
|
|
|
echo -n ' TCP keepalive=YES'
|
1999-06-05 12:06:19 +00:00
|
|
|
sysctl -w net.inet.tcp.always_keepalive=1 >/dev/null
|
1999-06-05 05:45:57 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${ipxgateway_enable}" = "YES" ]; then
|
1997-05-01 20:28:18 +00:00
|
|
|
echo -n ' IPX gateway=YES'
|
1999-06-05 12:06:19 +00:00
|
|
|
sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${arpproxy_all}" = "YES" ]; then
|
1999-06-05 12:06:19 +00:00
|
|
|
echo -n ' ARP proxyall=YES'
|
|
|
|
sysctl -w net.link.ether.inet.proxyall=1 >/dev/null
|
1998-05-19 04:36:31 +00:00
|
|
|
fi
|
|
|
|
echo '.'
|
|
|
|
|
|
|
|
echo -n 'routing daemons:'
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${router_enable}" = "YES" ]; then
|
1998-05-19 04:36:31 +00:00
|
|
|
echo -n " ${router}"; ${router} ${router_flags}
|
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${ipxrouted_enable}" = "YES" ]; then
|
1998-05-19 04:36:31 +00:00
|
|
|
echo -n ' IPXrouted'
|
1997-04-27 03:59:19 +00:00
|
|
|
IPXrouted ${ipxrouted_flags} > /dev/null 2>&1
|
|
|
|
fi
|
1997-05-13 08:22:27 +00:00
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${mrouted_enable}" = "YES" ]; then
|
1998-05-19 04:36:31 +00:00
|
|
|
echo -n ' mrouted'; mrouted ${mrouted_flags}
|
1997-05-13 08:22:27 +00:00
|
|
|
fi
|
1998-05-19 04:36:31 +00:00
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${rarpd_enable}" = "YES" ]; then
|
1998-03-09 08:50:30 +00:00
|
|
|
echo -n ' rarpd'; rarpd ${rarpd_flags}
|
|
|
|
fi
|
1997-04-27 03:59:19 +00:00
|
|
|
echo '.'
|
|
|
|
network_pass1_done=YES # Let future generations know we made it.
|
|
|
|
}
|
|
|
|
|
|
|
|
network_pass2() {
|
|
|
|
echo -n 'Doing additional network setup:'
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${named_enable}" = "YES" ]; then
|
1998-02-01 00:20:56 +00:00
|
|
|
echo -n ' named'; ${named_program-"named"} ${named_flags}
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${ntpdate_enable}" = "YES" ]; then
|
1998-05-06 17:36:16 +00:00
|
|
|
echo -n ' ntpdate'; ${ntpdate_program} ${ntpdate_flags} >/dev/null 2>&1
|
1997-12-01 06:11:34 +00:00
|
|
|
fi
|
1997-04-27 03:59:19 +00:00
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${xntpd_enable}" = "YES" ]; then
|
1998-05-06 17:36:16 +00:00
|
|
|
echo -n ' xntpd'; ${xntpd_program} ${xntpd_flags}
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${timed_enable}" = "YES" ]; then
|
1997-04-27 03:59:19 +00:00
|
|
|
echo -n ' timed'; timed ${timed_flags}
|
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${portmap_enable}" = "YES" ]; then
|
1999-03-11 16:17:24 +00:00
|
|
|
echo -n ' portmap'; ${portmap_program} ${portmap_flags}
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Start ypserv if we're an NIS server.
|
|
|
|
# Run rpc.ypxfrd and rpc.yppasswdd only on the NIS master server.
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${nis_server_enable}" = "YES" ]; then
|
1997-04-27 03:59:19 +00:00
|
|
|
echo -n ' ypserv'; ypserv ${nis_server_flags}
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${nis_ypxfrd_enable}" = "YES" ]; then
|
1997-04-27 03:59:19 +00:00
|
|
|
echo -n ' rpc.ypxfrd'; rpc.ypxfrd ${nis_ypxfrd_flags}
|
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${nis_yppasswdd_enable}" = "YES" ]; then
|
1997-04-27 03:59:19 +00:00
|
|
|
echo -n ' rpc.yppasswdd'; rpc.yppasswdd ${nis_yppasswdd_flags}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Start ypbind if we're an NIS client
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${nis_client_enable}" = "YES" ]; then
|
1997-04-27 03:59:19 +00:00
|
|
|
echo -n ' ypbind'; ypbind ${nis_client_flags}
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${nis_ypset_enable}" = "YES" ]; then
|
1997-04-27 03:59:19 +00:00
|
|
|
echo -n ' ypset'; ypset ${nis_ypset_flags}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
1998-04-12 09:47:43 +00:00
|
|
|
# Start keyserv if we are running Secure RPC
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${keyserv_enable}" = "YES" ]; then
|
1998-04-12 09:47:43 +00:00
|
|
|
echo -n ' keyserv'; keyserv ${keyserv_flags}
|
|
|
|
fi
|
|
|
|
# Start ypupdated if we are running Secure RPC and we are NIS master
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${rpc_ypupdated_enable}" = "YES" ]; then
|
1998-04-12 09:47:43 +00:00
|
|
|
echo -n ' rpc.ypupdated'; rpc.ypupdated
|
|
|
|
fi
|
|
|
|
|
1998-10-06 19:24:31 +00:00
|
|
|
# Start ATM daemons
|
|
|
|
if [ -n "${atm_pass2_done}" ]; then
|
|
|
|
atm_pass3
|
|
|
|
fi
|
|
|
|
|
1997-04-27 03:59:19 +00:00
|
|
|
echo '.'
|
|
|
|
network_pass2_done=YES
|
|
|
|
}
|
|
|
|
|
|
|
|
network_pass3() {
|
|
|
|
echo -n 'Starting final network daemons:'
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${nfs_server_enable}" = "YES" -a -r /etc/exports ]; then
|
1997-04-27 03:59:19 +00:00
|
|
|
echo -n ' mountd'
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${weak_mountd_authentication}" = "YES" ]; then
|
1997-04-27 03:59:19 +00:00
|
|
|
mountd_flags="-n"
|
|
|
|
fi
|
|
|
|
mountd ${mountd_flags}
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${nfs_reserved_port_only}" = "YES" ]; then
|
1999-06-05 12:06:19 +00:00
|
|
|
echo -n ' NFS on reserved port only=YES'
|
|
|
|
sysctl -w vfs.nfs.nfs_privport=1 >/dev/null
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
1997-05-19 07:46:51 +00:00
|
|
|
echo -n ' nfsd'; nfsd ${nfs_server_flags}
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${rpc_lockd_enable}" = "YES" ]; then
|
1997-04-27 03:59:19 +00:00
|
|
|
echo -n ' rpc.lockd'; rpc.lockd
|
|
|
|
fi
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${rpc_statd_enable}" = "YES" ]; then
|
1997-04-27 03:59:19 +00:00
|
|
|
echo -n ' rpc.statd'; rpc.statd
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${nfs_client_enable}" = "YES" ]; then
|
1997-05-19 07:46:51 +00:00
|
|
|
echo -n ' nfsiod'; nfsiod ${nfs_client_flags}
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${nfs_access_cache}" != "X" ]; then
|
1999-06-05 12:06:19 +00:00
|
|
|
echo -n " NFS access cache time=${nfs_access_cache}"
|
1998-11-27 07:06:11 +00:00
|
|
|
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} \
|
1999-06-05 12:06:19 +00:00
|
|
|
>/dev/null
|
1998-11-15 20:30:04 +00:00
|
|
|
fi
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${amd_enable}" = "YES" ]; then
|
1997-04-27 03:59:19 +00:00
|
|
|
echo -n ' amd'
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${amd_map_program}" != "NO" ]; then
|
1998-09-16 20:38:23 +00:00
|
|
|
amd_flags="${amd_flags} `eval ${amd_map_program}`"
|
1998-04-26 06:32:13 +00:00
|
|
|
fi
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ -n "${amd_flags}" ]
|
1999-06-08 13:00:30 +00:00
|
|
|
then
|
|
|
|
amd -p ${amd_flags} > /var/run/amd.pid 2> /dev/null
|
|
|
|
else
|
|
|
|
amd 2> /dev/null
|
|
|
|
fi
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${rwhod_enable}" = "YES" ]; then
|
1999-01-03 22:19:23 +00:00
|
|
|
echo -n ' rwhod'; rwhod ${rwhod_flags}
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Kerberos runs ONLY on the Kerberos server machine
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${kerberos_server_enable}" = "YES" ]; then
|
|
|
|
if [ "${kerberos_stash}" = "YES" ]; then
|
1997-11-07 20:45:48 +00:00
|
|
|
stash_flag=-n
|
|
|
|
else
|
|
|
|
stash_flag=
|
|
|
|
fi
|
|
|
|
echo -n ' kerberos'; \
|
1998-08-14 06:55:17 +00:00
|
|
|
kerberos ${stash_flag} >> /var/log/kerberos.log &
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ "${kadmind_server_enable}" = "YES" ]; then
|
1997-11-07 20:45:48 +00:00
|
|
|
echo -n ' kadmind'; \
|
1998-08-14 06:55:17 +00:00
|
|
|
(sleep 20; kadmind ${stash_flag} >/dev/null 2>&1 &) &
|
1997-11-07 20:45:48 +00:00
|
|
|
fi
|
|
|
|
unset stash_flag
|
1997-04-27 03:59:19 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo '.'
|
|
|
|
network_pass3_done=YES
|
|
|
|
}
|