Add ${lpd_program} and ${portmap_program} as variables in rc.conf, with

suitable defaults pointing to the FreeBSD-shipped versions.  This will allow
for easier integration of third-party replacements for these daemons.
Reviewed by: Several members of -committers
This commit is contained in:
James FitzGibbon 1999-03-11 16:17:24 +00:00
parent 8b2de66177
commit 1dd418124c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44668
9 changed files with 19 additions and 17 deletions

View File

@ -9,7 +9,7 @@
#
# All arguments must be in double or single quotes.
#
# $Id: rc.conf,v 1.1 1999/02/09 22:15:18 jkh Exp $
# $Id: rc.conf,v 1.2 1999/03/03 15:04:33 phk Exp $
##############################################################
### Important initial Boot-time options #####################
@ -81,6 +81,7 @@ nfs_reserved_port_only="NO" # Provide NFS only on secure port (or NO).
rpc_lockd_enable="NO" # Run NFS rpc.lockd (*broken!*) if nfs_server.
rpc_statd_enable="YES" # Run NFS rpc.statd if nfs_server (or NO).
portmap_enable="YES" # Run the portmapper service (or NO).
portmap_program="/usr/sbin/portmap" # path to portmap, if you want a different one.
portmap_flags="" # Flags to portmap (if enabled).
rpc_ypupdated_enable="NO" # Run if NIS master and SecureRPC (or NO).
keyserv_enable="NO" # Run the SecureRPC keyserver (or NO).
@ -178,6 +179,7 @@ allscreens_flags="" # Set this vidcontrol mode for all virtual screens
cron_enable="YES" # Run the periodic job daemon.
lpd_enable="NO" # Run the line printer daemon.
lpd_program="/usr/sbin/lpd" # path to lpd, if you want a different one.
lpd_flags="" # Flags to lpd (if enabled).
usbd_enable="NO" # Run the usbd daemon.
usbd_flags="" # Flags to usbd (if enabled).

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.38 1999/01/13 08:20:55 hm Exp $
# $Id: rc.network,v 1.39 1999/01/13 17:32:37 joerg Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -211,7 +211,7 @@ network_pass2() {
fi
if [ "X${portmap_enable}" = X"YES" ]; then
echo -n ' portmap'; portmap ${portmap_flags}
echo -n ' portmap'; ${portmap_program} ${portmap_flags}
fi
# Start ypserv if we're an NIS server.

4
etc/rc
View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: rc,v 1.178 1999/02/10 18:08:16 jkh Exp $
# $Id: rc,v 1.179 1999/02/13 05:30:49 jkh Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@ -305,7 +305,7 @@ if [ "X${cron_enable}" != X"NO" ]; then
fi
if [ "X${lpd_enable}" = X"YES" ]; then
echo -n ' printer'; lpd ${lpd_flags}
echo -n ' printer'; ${lpd_program} ${lpd_flags}
fi
if [ "X${sendmail_enable}" = X"YES" -a -r /etc/sendmail.cf ]; then

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.38 1999/01/13 08:20:55 hm Exp $
# $Id: rc.network,v 1.39 1999/01/13 17:32:37 joerg Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -211,7 +211,7 @@ network_pass2() {
fi
if [ "X${portmap_enable}" = X"YES" ]; then
echo -n ' portmap'; portmap ${portmap_flags}
echo -n ' portmap'; ${portmap_program} ${portmap_flags}
fi
# Start ypserv if we're an NIS server.

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.38 1999/01/13 08:20:55 hm Exp $
# $Id: rc.network,v 1.39 1999/01/13 17:32:37 joerg Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -211,7 +211,7 @@ network_pass2() {
fi
if [ "X${portmap_enable}" = X"YES" ]; then
echo -n ' portmap'; portmap ${portmap_flags}
echo -n ' portmap'; ${portmap_program} ${portmap_flags}
fi
# Start ypserv if we're an NIS server.

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.38 1999/01/13 08:20:55 hm Exp $
# $Id: rc.network,v 1.39 1999/01/13 17:32:37 joerg Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -211,7 +211,7 @@ network_pass2() {
fi
if [ "X${portmap_enable}" = X"YES" ]; then
echo -n ' portmap'; portmap ${portmap_flags}
echo -n ' portmap'; ${portmap_program} ${portmap_flags}
fi
# Start ypserv if we're an NIS server.

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.38 1999/01/13 08:20:55 hm Exp $
# $Id: rc.network,v 1.39 1999/01/13 17:32:37 joerg Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -211,7 +211,7 @@ network_pass2() {
fi
if [ "X${portmap_enable}" = X"YES" ]; then
echo -n ' portmap'; portmap ${portmap_flags}
echo -n ' portmap'; ${portmap_program} ${portmap_flags}
fi
# Start ypserv if we're an NIS server.

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.38 1999/01/13 08:20:55 hm Exp $
# $Id: rc.network,v 1.39 1999/01/13 17:32:37 joerg Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -211,7 +211,7 @@ network_pass2() {
fi
if [ "X${portmap_enable}" = X"YES" ]; then
echo -n ' portmap'; portmap ${portmap_flags}
echo -n ' portmap'; ${portmap_program} ${portmap_flags}
fi
# Start ypserv if we're an NIS server.

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.38 1999/01/13 08:20:55 hm Exp $
# $Id: rc.network,v 1.39 1999/01/13 17:32:37 joerg Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -211,7 +211,7 @@ network_pass2() {
fi
if [ "X${portmap_enable}" = X"YES" ]; then
echo -n ' portmap'; portmap ${portmap_flags}
echo -n ' portmap'; ${portmap_program} ${portmap_flags}
fi
# Start ypserv if we're an NIS server.