|
NAMErcorder —
print a dependency ordering of interdependent files
SYNOPSIS
DESCRIPTIONThercorder utility is designed to print out a
dependency ordering of a set of interdependent files. Typically it is used to
find an execution sequence for a set of shell scripts in which certain files
must be executed before others.
Each file passed to Within each file, a block containing a series of
‘ The options are as follows:
An example block follows: # REQUIRE: networking syslog # REQUIRE: usr # PROVIDE: dns nscd This block states that the file in which it appears depends upon
the ‘ A file may contain zero
‘ KEYWORDSThere are several KEYWORDs in use:
EXAMPLESPrint the dependency ordering of the services from the base system and ports(7):$ rcorder /etc/rc.d/* /usr/local/etc/rc.d/* Count the number of services in the base system, which specify the shutdown keyword, while skipping those with firstboot and nojailvnet: $ rcorder -k nostart -s firstboot -s nojailvnet /etc/rc.d/* | wc -l 3 DIAGNOSTICSThercorder utility may print one of the following error
messages and exit with a non-zero status if it encounters an error while
processing the file list.
DIAGNOSTICS WITH GRAPHVIZDirect dependency is drawn with solid line, ‘BEFORE ’ dependency is drawn as a dashed
line. Each node of a graph represents an item from
‘PROVIDE ’ lines. In case there are more
than one file providing an item, a list of filenames shortened with
basename(3)
is shown. Shortened filenames are also shown in case
‘PROVIDE ’ item does not match file name.
Edges and nodes where circular dependencies were detected are
drawn bold red. If a file has an item in
‘ SEE ALSOacpiconf(8), rc(8), rc.shutdown(8), service(8)HISTORYThercorder utility appeared in NetBSD
1.5. rcorder utility first appeared in
FreeBSD 5.0.
AUTHORSWritten by Perry E. Metzger <perry@piermont.com> and Matthew R. Green <mrg@eterna.com.au>.BUGSThe ‘REQUIRE ’ keyword is misleading: It
does not describe which daemons have to be running before a script will be
started. It describes which scripts must be placed before it in the dependency
ordering. For example, if your script has a
‘REQUIRE ’ on
‘sshd ’, it means the script must be
placed after the ‘sshd ’ script in the
dependency ordering, not necessarily that it requires
sshd to be started or enabled.
Visit the GSP FreeBSD Man Page Interface. |