summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1993-11-07 01:19:06 +0000
committerwollman <wollman@FreeBSD.org>1993-11-07 01:19:06 +0000
commit14f8bf93ec1db9732152d702f93f9a7dd14bfec0 (patch)
tree8c23838b17ed7d9ce034a98ba5f38d6a8d35cd89 /etc/rc
parent9318ba65b5c0043408f1ea5a9ba38c18605b26ae (diff)
downloadFreeBSD-src-14f8bf93ec1db9732152d702f93f9a7dd14bfec0.zip
FreeBSD-src-14f8bf93ec1db9732152d702f93f9a7dd14bfec0.tar.gz
Added a new flag variable to /etc/netstart, $sendmail_flags, which
gives the flags to be passed to sendmail when it is started. (If it is "NO", sendmail is not started.) Also, always start the portmapper regardless of the value of $nfs_server; this should prevent the inetd complaints we have seen from recurring.
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc16
1 files changed, 13 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index 8571571..5965439 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,6 @@
-# @(#)rc 5.27 (Berkeley) 6/5/91
+#!/bin/sh
+# $Id$
+# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
# or after single-user.
@@ -151,15 +153,23 @@ fi
echo -n ' printer'; lpd
+# Portmapper should always be run, to provide RPC services for inetd.
+if [ -x /usr/sbin/portmap ]; then
+ echo -n ' portmap'; portmap
+fi
if [ X${nfs_server} = X"YES" -a -r /etc/exports ]; then
- echo -n ' portmap'; portmap
echo -n ' mountd'; mountd
echo -n ' nfsd'; nfsd -u 0,0,4 -t 0,0
echo -n ' nfsiod'; nfsiod 4
fi
-echo -n ' sendmail'; sendmail -bd -q30m
+# $sendmail_flags is imported from /etc/netstart;
+# 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
+
echo -n ' inetd'; inetd
echo '.'
OpenPOWER on IntegriCloud