HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)
c
ch_rc(1M) ch_rc(1M)
-R root Normally, the files specified on the command line are used as specified. By specifying a
root directory with the -R option, all files (including the default files if none are specified)
will be interpreted relative to root.
For example, if root is specified as
/foo and /etc/TIMEZONE
is specified on the com-
mand line, it will be interpreted as
/foo/etc/TIMEZONE
.
RETURN VALUE
ch_rc exits with one of the following values:
0 add/delete/list successful
1 command line syntax/usage error
2 can not access one or more of the listed (or default) files
3 can not open/create/write file
4 memory error
5 no files specified on command line for add option
EXAMPLES
Files in the /etc/rc.config.d
directory have the following format:
# Comments are preceded by pound signs and
# are always on a line of their own.
# Blank lines are allowed.
VARIABLE=value
VARIABLE_2=value2
VARIABLE_3[1]=value3
VARIABLE_3[2]=value4
# All parameters are defined on a single line
# Parameters must not be exported
WARNINGS
ch_rc does not interpret configuration files; it only does pattern matching. As a result, if comments
appear on lines containing parameter definitions, the comments will also appear in output when using the
-l option.
ch_rc cannot parse multiple parameter definitions which occur on the same line of a file.
AUTHOR
ch_rc was developed by HP.
FILES
/etc/rc.config system configuration database driver file
/etc/rc.config.d
directory containing system configuration files
SEE ALSO
rc.config(4).
HP-UX 11i Version 1: September 2005 − 2 − Hewlett-Packard Company Section 1M−−133