mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
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.
This commit is contained in:
parent
5d00bb0d04
commit
d55a595346
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=709
@ -1,10 +1,12 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
# $Id$
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
routedflags=-q
|
||||
timedflags=NO
|
||||
rwhod=NO
|
||||
sendmail_flags="-bd -q30m"
|
||||
#kerberos_server=YES
|
||||
#nfs_server=YES
|
||||
#name_server=YES
|
||||
|
16
etc/rc
16
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 '.'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user