version 1.66, 1998/02/18 14:05:27 |
version 1.67, 1998/02/26 18:50:52 |
|
|
|
|
# $nfs_server is imported from /etc/rc.conf; |
# $nfs_server is imported from /etc/rc.conf; |
# if $nfs_server == YES, the machine is setup for being an nfs server |
# if $nfs_server == YES, the machine is setup for being an nfs server |
if [ X${nfs_server} = X"YES" -a -r /etc/exports -a \ |
if [ X${nfs_server} = X"YES" -a -s /etc/exports -a \ |
`cat /etc/exports | sed -e '/^#/d' | wc -l` -ne 0 ]; then |
`cat /etc/exports | sed -e '/^#/d' | wc -l` -ne 0 ]; then |
rm -f /var/db/mountdtab |
rm -f /var/db/mountdtab |
echo -n > /var/db/mountdtab |
echo -n > /var/db/mountdtab |
|
|
echo -n ' nfsiod'; nfsiod ${nfsiod_flags} |
echo -n ' nfsiod'; nfsiod ${nfsiod_flags} |
fi |
fi |
|
|
if [ X${amd} = X"YES" -a -d ${amd_dir} -a -r ${amd_master} ]; then |
if [ X${amd} = X"YES" -a -d ${amd_dir} -a -e ${amd_master} ]; then |
echo -n ' amd' |
echo -n ' amd' |
amd -l syslog -x error,noinfo,nostats -p \ |
amd -l syslog -x error,noinfo,nostats -p \ |
-a ${amd_dir} `cat ${amd_master}` > /var/run/amd.pid |
-a ${amd_dir} `cat ${amd_master}` > /var/run/amd.pid |
|
|
# $gated and $routed_flags are imported from /etc/rc.conf. |
# $gated and $routed_flags are imported from /etc/rc.conf. |
# If $gated == YES, gated is used; otherwise routed. |
# If $gated == YES, gated is used; otherwise routed. |
# If $routed_flags == NO, routed isn't run. |
# If $routed_flags == NO, routed isn't run. |
if [ X${gated} = X"YES" -a -r /etc/gated.conf ]; then |
if [ X${gated} = X"YES" -a -e /etc/gated.conf ]; then |
echo -n ' gated'; gated $gated_flags |
echo -n ' gated'; gated $gated_flags |
elif [ "X${routed_flags}" != X"NO" ]; then |
elif [ "X${routed_flags}" != X"NO" ]; then |
echo -n ' routed'; routed $routed_flags |
echo -n ' routed'; routed $routed_flags |
|
|
# If $sendmail_flags == NO or /etc/sendmail.cf doesn't exist, then |
# If $sendmail_flags == NO or /etc/sendmail.cf doesn't exist, then |
# sendmail isn't run. We call sendmail with a full path so that |
# sendmail isn't run. We call sendmail with a full path so that |
# SIGHUP works. |
# SIGHUP works. |
if [ "X${sendmail_flags}" != X"NO" -a -r /etc/sendmail.cf ]; then |
if [ "X${sendmail_flags}" != X"NO" -a -s /etc/sendmail.cf ]; then |
echo -n ' sendmail'; /usr/sbin/sendmail ${sendmail_flags} |
echo -n ' sendmail'; /usr/sbin/sendmail ${sendmail_flags} |
fi |
fi |
|
|
|
|
# $rarpd_flags is imported from /etc/rc.conf; |
# $rarpd_flags is imported from /etc/rc.conf; |
# If $rarpd_flags == NO or /etc/ethers doesn't exist, then |
# If $rarpd_flags == NO or /etc/ethers doesn't exist, then |
# rarpd isn't run. |
# rarpd isn't run. |
if [ "X${rarpd_flags}" != X"NO" -a -r /etc/ethers ]; then |
if [ "X${rarpd_flags}" != X"NO" -a -s /etc/ethers ]; then |
echo -n ' rarpd'; rarpd ${rarpd_flags} |
echo -n ' rarpd'; rarpd ${rarpd_flags} |
fi |
fi |
|
|
# $bootparamd_flags is imported from /etc/rc.conf; |
# $bootparamd_flags is imported from /etc/rc.conf; |
# If $bootparamd_flags == NO or /etc/bootparams doesn't exist, then |
# If $bootparamd_flags == NO or /etc/bootparams doesn't exist, then |
# bootparamd isn't run. |
# bootparamd isn't run. |
if [ "X${bootparamd_flags}" != X"NO" -a -r /etc/bootparams ]; then |
if [ "X${bootparamd_flags}" != X"NO" -a -s /etc/bootparams ]; then |
echo -n ' rpc.bootparamd'; rpc.bootparamd ${bootparamd_flags} |
echo -n ' rpc.bootparamd'; rpc.bootparamd ${bootparamd_flags} |
fi |
fi |
|
|
# $rbootd_flags is imported from /etc/rc.conf; |
# $rbootd_flags is imported from /etc/rc.conf; |
# If $rbootd_flags == NO or /etc/rbootd.conf doesn't exist, then |
# If $rbootd_flags == NO or /etc/rbootd.conf doesn't exist, then |
# rbootd isn't run. |
# rbootd isn't run. |
if [ "X${rbootd_flags}" != X"NO" -a -r /etc/rbootd.conf ]; then |
if [ "X${rbootd_flags}" != X"NO" -a -s /etc/rbootd.conf ]; then |
echo -n ' rbootd'; rbootd ${rbootd_flags} |
echo -n ' rbootd'; rbootd ${rbootd_flags} |
fi |
fi |
|
|