Index: ossp-pkg/rc/rc.conf RCS File: /v/ossp/cvs/ossp-pkg/rc/rc.conf,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/rc/rc.conf,v' 2>/dev/null --- rc.conf 2002/01/25 16:04:41 1.2 +++ rc.conf 2002/01/28 16:01:23 1.3 @@ -3,11 +3,9 @@ # #### Inclusive options #### -func $OSSP_RC_ROOT/rc.iofunc $OSSP_RC_ROOT/rc.dbgfunc\ - $OSSP_RC_ROOT/rc.exfunc dirs /usr/local/rc /export/home/macgyver/runcommands #file /export/home/rc.init #practically only used on command line -tmpdir /var/tmp +tmp /var/tmp verbose #silent debug @@ -25,13 +23,29 @@ regex-assign '(\s+)=(.*)$' regex-param '..' #needs explanation -#### Exclusive options #### -#help -#version -#showdefaults -#print -eval -#exec -#query -#labels -#info + + + + + + +#conf it's not possible to set the conf file in the conf file +func rc.iofunc \ + rc.dbgfunc \ + rc.exfunc +force #flag +dirs /cw/etc/rc.d:/etc/rc.d +tmp /var/tmp +verbose #flag +silent #flag +debug #flag +raw #flag +help #flag +usage #flag +version #flag +print #flag +eval #flag +exec #flag +query ${foovar:-foodefault} +labels start +info #flag Index: ossp-pkg/rc/rc.pod RCS File: /v/ossp/cvs/ossp-pkg/rc/rc.pod,v rcsdiff -q -kk '-r1.18' '-r1.19' -u '/v/ossp/cvs/ossp-pkg/rc/rc.pod,v' 2>/dev/null --- rc.pod 2002/01/28 14:30:04 1.18 +++ rc.pod 2002/01/28 16:01:23 1.19 @@ -37,56 +37,62 @@ =over 4 -#rc [-h|--help] [-V|--version] [-v|--verbose] -# [-d|--debug] [-p|--print] [-e|--eval] -# [-c|--config] [-q|--query] [-r|--raw] -#
[
...] - =item B @l_prefix@/etc/rc -[B<-f>|B<--rcfile>] -[B<-d>|B<--rcdir> I[C<:>I[...]] -[B<-C>|B<--rcconf> I[C<:>I[...]]] -[B<-F>|B<--rcfunc> I[C<:>I[...]]] -[B<-t>|B<--tmpdir> I] +[B<-c>|B<--conf> I[C<:>I[...]]] +[B<-t>|B<--tmp> I] [B<-r>|B<--raw>] [B<-v>|B<--verbose>] [B<-D>|B<--debug>] -[I] -[I] -[I] =item B @l_prefix@/etc/rc -[I] +[I] [B<-x>|B<--exec>] [B<-p>|B<--print>] [B<-e>|B<--eval>] -I +[B<-d>|B<--dirs> I[C<:>I[...]] +[B<-f>|B<--func> I[C<:>I[...]]] +[B<-F>|B<--force>] +I I
[I
...] =item B @l_prefix@/etc/rc -[I] -[B<-q>|B<--query>] -I - -@l_prefix@/etc/rc -[I] -[B<-c>|B<--config>] -[I] +[I] +B<-q>|B<--query> I +[B<-d>|B<--dirs> I[C<:>I[...]] +[B<-F>|B<--force>] +I + +=item B + +[I] +<-l>|<--labels> +[B<-d>|B<--dirs> I[C<:>I[...]] +[B<-F>|B<--force>] +I + +# FIXME Ralf, what's that? +# @l_prefix@/etc/rc +# [I] +# [B<-c>|B<--conf>] +# [I] -=item B +=item B @l_prefix@/etc/rc -[I] +[I] [B<-i>|B<--info>] +=item B + @l_prefix@/etc/rc +[B<-?>|B<--usage>] [B<-h>|B<--help>] [B<-V>|B<--version>] @@ -137,19 +143,17 @@ Inclusive options which may be used with another -=item B<-c>, B<--config> F +=item B<-c>, B<--conf> F -specify the location of the configuration file, overriding the environment -variable $OSSP_RC_CONFIG and the built-in hard-coded value (see -DEFAULTS.)!FIXME! +specify the location of the configuration file. -=item B<-n>, B<--func> F[C<:>F[...]] +=item B<-f>, B<--func> F[C<:>F[...]] specify the location of one or more optional function files, containing commands which are prepended to the sections of their corresponding Cs. -=item B<-f>, B<--file> +=item B<-F>, B<--force> Disable ${OSSP_RC_PREFIX} and ${OSSP_RC_SUFFIX} expansion on F. Disable searching for F. This mode assumes F is a filename. It @@ -171,7 +175,7 @@ be silent, and disable output -=item B<-d>, B<--debug> +=item B<-D>, B<--debug> don't remove temporary files, and output debug messages to stderr @@ -189,6 +193,10 @@ print this help, then exit +=item B<-?>, B<--usage> + +print short usage summary, then exit. + =item B<-V>, B<--version> print version and copyright, then exit @@ -234,16 +242,16 @@ B<--silent> will mute B's output and also all command output that B runs. -=item B<-t>, B<--tmpdir> I +=item B<-r>, B<--raw> I The option B<-r> or B<--raw> turns on raw output mode. In this case, no formatting is done to the screen output. This mode is different from formatted output mode, in which the output is annotated with terminal control sequences for better readability. -=item B<-t>, B<--tmpdir> I +=item B<-t>, B<--tmp> I -Specifying the option B<--tmpdir> will force B to use the given temporary +Specifying this option will force B to use the given temporary directory I for all its temporary output. =item B<-e>, B<--eval> and B<-p>, B<--print> @@ -309,9 +317,13 @@ If neither B<--print>, B<--eval>, or B<­-exec> is given B will default to B<--exec>. -=item B<-c>, B<--config> F -=item B<-n>, B<--func> F[C<:>F[...]] -=item B<-f>, B<--file> F +=item B<-c>, B<--conf> F + +Using F from command line option -c aka --conf, fallback to +${OSSP_RC_CONF}, fallback to "@l_prefix@/etc/rc.conf". + +=item B<-f>, B<--func> F[C<:>F[...]] +=item B<-F>, B<--force> =item B<-d>, B<--dirs> I[C<:>I[...] #!FIXME! Sprech mal von Pfad und Dateien defaults wieviel rc.conf erlaubt @@ -322,28 +334,18 @@ F F -#!FIXME! Kein mehr defaults, und sag so -=item B<-v>, B<--verbose> -=item B<-q>, B<--silent> -=item B<-d>, B<--debug> -=item B<-h>, B<--help> -=item B<-V>, B<--version> -=item B<-q>, B<--query> -=item B<-l>, B<--labels> -=item B<-i>, B<--info> - =head1 ENVIRONMENT =over 4 -OSSP_RC_CONFIG - Where to find the F file. -OSSP_RC_DIRS - Where to find the F> files. -OSSP_RC_OPTIONS - Options, same as the command line ones +Every command line longoption is also a keyword in the rc.conf file and, +prefixed with "OSSP_RC_" and it's name in upper case, also available as an +environment variable. The environment determines where rc will search before beginning to process run commands. It also influences B behaviour, just as the command line options do. There is no difference between typing an option in the command -line, and appending the same option to the OSSP_RC_OPTIONS variable. +line, and appending the same option to the OSSP_RC_OPTS variable. #!FIXME! Study this and determine if it is needed #OSSP_RC_IMPLS - Other rc implementations @@ -382,7 +384,7 @@ /etc/rc --query lmtp2nntp /mybin/rc sshd start /etc/rc lmtp2nntp start - /sfw/etc/rc --config /etc/rc.conf --debug smtpd stop + /sfw/etc/rc --conf /etc/rc.conf --debug smtpd stop /sfw/etc/rc --silent ntpd start sync stop start /usr/local/bin/rc httpd restart