Change how the YP daemons are started. Previously, ypbind was always

started if the directory /var/yp exists.  Now, ypbind, ypserv, and
rpc.yppasswdd are started like other daemons; there are flags variables
for these programs.  To disable them, set the variables to "NO", otherwise,
their contents are passed as flags.
This commit is contained in:
thorpej 1996-08-09 10:29:44 +00:00
parent eabc5cbaf3
commit 2dfaa56a79
2 changed files with 23 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: netstart,v 1.23 1995/12/30 01:30:03 thorpej Exp $
# $NetBSD: netstart,v 1.24 1996/08/09 10:29:44 thorpej Exp $
# @(#)netstart 5.9 (Berkeley) 3/30/91
# set these to "NO" to turn them off. otherwise, they're used as flags
@ -13,6 +13,17 @@ sendmail_flags=NO # for 'normal' use: sendmail_flags="-bd -q30m"
named_flags=NO # for 'normal' use: named_flags=""
timed_flags=
# If your system is to be a YP server, you need to enable ypserv
# and (optionally) rpc.yppasswdd. Set these variables to "NO"
# to turn them off, otherwise they're used as flags.
ypserv_flags=NO # for 'normal' use: ypserv_flags="-d"
yppasswdd_flags=NO # for 'normal' use: yppasswdd_flags=""
# If your system is to be a YP client, you need to enable ypbind.
# Set these variables to "NO" to turn them off, otherwise they're
# used as flags.
ypbind_flags=NO # for 'normal' use: ypbind_flags=""
# set the following to "YES" to turn them on
rwhod=NO
nfs_server=NO

14
etc/rc
View File

@ -1,4 +1,4 @@
# $NetBSD: rc,v 1.57 1996/03/22 03:20:53 mrg Exp $
# $NetBSD: rc,v 1.58 1996/08/09 10:29:48 thorpej Exp $
# from: @(#)rc 8.2 (Berkeley) 3/17/94
# System startup script run by init on autoboot
@ -89,8 +89,16 @@ rm -f /var/spool/uucp/STST/*
echo -n 'starting rpc daemons:'
echo -n ' portmap'; portmap
if [ -f /usr/sbin/ypbind -a -d /var/yp ]; then
echo -n ' ypbind'; ypbind
if [ X${ypserv_flags} != X"NO" ]; then
echo -n ' ypserv'; ypserv ${ypserv_flags}
fi
if [ X${yppasswdd_flags} != X"NO" ]; then
echo -n ' rpc.yppasswdd'; rpc.yppasswdd ${yppasswdd_flags}
fi
if [ X${ypbind_flags} != X"NO" ]; then
echo -n ' ypbind'; ypbind ${ypbind_flags}
fi
# $nfs_server is imported from /etc/netstart;