rcmgr(8) — Maintenance
NAME
rcmgr, rc.config − Gets and sets run-time configuration variables stored in the files /etc/rc.config and /etc/rc.config.site
SYNOPSIS
/usr/sbin/rcmgr set variable value
/usr/sbin/rcmgr get variable
DESCRIPTION
The rcmgr command retrieves and sets run-time configuration variables stored in /etc/rc.config and /etc/rc.config.site. These variables are used to configure various subsystems (for example, NFS or NTP) by scripts in the /sbin/init.d directory.
FLAGS
set Sets the variable to value in the /etc/rc.config file.
get Looks for variables in /etc/rc.config. If the variable is not found, the get operation looks for the variable in /etc/rc.config.site. This allows an administrator to use a common configuration in a local area network. The administrator can create and distribute a common /etc/rc.config.site file. Node-specific information should stay in /etc/rc.config. The get option allows a programmer to specify a default value for an option if it is not found in either the /etc/rc.config or the /etc/rc.config.local files.
EXAMPLES
rcmgr set HOSTNAME yukio
This example sets the variable HOSTNAME to yukio in the /etc/rc.config file.
rcmgr set IFCONFIG_0 111.111.1.11 netmask 255.255.252.0
This example sets the variable IFCONFIG_0 to "111.111.1.11 netmask 255.255.252.0" in the /etc/rc.config file.
rcmgr get NIS_ARGS
This example displays the value the variable NIS_ARGS. If this variable is not set in the /etc/rc.config file, then the rcmgr command looks in the /etc/rc.config.site file for the variable.
Startup scripts can use the get operation to provide values to variables as in the following examples:
host=‘rcmgr get HOSTNAME‘
This example sets the value of host to the value of HOSTNAME in the /etc/rc.config file.
num_nfsd=‘rcmgr get NUM_NFSD 4‘
This example sets num_nfsd to 4 if NUM_NFSD does not exist in the /etc/rc.config file or in the /etc/rc.config.site file.
FILES
/etc/rc.config
/etc/rc.config.site
RELATED INFORMATION
System Administration