diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-09-04 10:25:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-09-04 10:25:56 +0000 |
commit | 5208b3424fd754cee0d6aeb89b8c3b8418614670 (patch) | |
tree | d4a54ad04ffce48387a70a3de653e3f85e3d20cc /etc | |
parent | 9d710e408d6a50b64895641c8401f284906ea29f (diff) |
control portmap, inetd, and lpd from netstart; idea from tqbf@enteract.com
Diffstat (limited to 'etc')
-rw-r--r-- | etc/netstart | 5 | ||||
-rw-r--r-- | etc/rc | 15 |
2 files changed, 15 insertions, 5 deletions
diff --git a/etc/netstart b/etc/netstart index d8c939fe10c..2dabaa0dad5 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.9 1996/08/27 11:46:20 deraadt Exp $ +# $OpenBSD: netstart,v 1.10 1996/09/04 10:25:55 deraadt Exp $ # set these to "NO" to turn them off. otherwise, they're used as flags routed_flags=-q @@ -20,6 +20,9 @@ gated=NO kerberos_server=NO amd=NO ipfilter=NO +portmap=YES # almost always needed +inetd=YES # almost always needed +lpd=NO # printing daemons # miscellaneous other flags # only used if the appropriate server is marked YES above @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.22 1996/07/27 01:39:04 deraadt Exp $ +# $OpenBSD: rc,v 1.23 1996/09/04 10:25:53 deraadt Exp $ # System startup script run by init on autoboot # or after single-user. @@ -87,7 +87,9 @@ rm -f /var/spool/uucp/STST/* (cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; }) echo -n 'starting rpc daemons:' -echo -n ' portmap'; portmap +if [ X"${portmap}" == X"YES" ]; then + echo -n ' portmap'; portmap +fi if [ -d /var/yp/binding ]; then if [ -d /var/yp/`domainname` ]; then @@ -230,7 +232,10 @@ if [ X${rwhod} = X"YES" ]; then echo -n ' rwhod'; rwhod fi -echo -n ' printer'; lpd + +if [ X${lpd} = X"YES" ]; then + echo -n ' printer'; lpd +fi # $sendmail_flags is imported from /etc/netstart; # If $sendmail_flags == NO or /etc/sendmail.cf doesn't exist, then @@ -240,7 +245,9 @@ if [ "X${sendmail_flags}" != X"NO" -a -r /etc/sendmail.cf ]; then echo -n ' sendmail'; /usr/sbin/sendmail ${sendmail_flags} fi -echo -n ' inetd'; inetd +if [ X${inetd} = X"YES" ]; then + echo -n ' inetd'; inetd +fi # $rarpd_flags is imported from /etc/netstart; # If $rarpd_flags == NO or /etc/ethers doesn't exist, then |