Check-in Number:
|
1764 | |
Date: |
2002-Jan-31 21:00:54 (local)
2002-Jan-31 20:00:54 (UTC) |
User: | ms |
Branch: | |
Comment: |
General edits, added new %default and %error sections.
PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from: |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/rc/rc-sample.pod 1.6 -> 1.7
--- rc-sample.pod 2002/01/30 22:55:26 1.6
+++ rc-sample.pod 2002/01/31 20:00:54 1.7
@@ -9,10 +9,10 @@
This documents typical use cases for B<OSSP rc>.
-=head1 USE CASE: OpenPKG Run-Command Facility
+=head1 USE CASE: OpenPKG Runcommand Facility
This describes how B<OSSP rc> is used as the B<OpenPKG>
-(http://www.openpkg.org/) run-command facility.
+(http://www.openpkg.org/) runcommand facility.
First, the involved files:
@@ -24,7 +24,7 @@
=item F</cw/etc/rc.cf>
-This is the B<OSSP rc> configuration file, hard-coded into
+This is the B<OSSP rc> configuration file, hardcoded into
F</cw/etc/rc> at configure/build time with the Autoconf option
C<--with-config=/cw/etc/rc.cf>. It is installed at B<OpenPKG>
bootstrap time and used read-only.
@@ -39,13 +39,14 @@
RequireGroup cw
# how to parse RC files
- ParseEnvDef (?<=^\s*)([a-zA-Z_][a-zA-Z_0-9]*)=(?:"([^"]*)"|'([^']*)'|(\S+))
+ ParseEnvAss (?<=^\s*)([a-zA-Z_][a-zA-Z_0-9]*)=(?:"([^"]*)"|'([^']*)'|(\S+))
ParseSectionDef (?<=^|\n)%([a-zA-Z][a-zA-Z0-9]*)(\s+-[a-zA-Z]\s*\S+)*\s*\n(.+?)(?=\n%%\S+|$)
+ ParseSectionRef (?<=^\s*|;\s*)@([a-zA-Z][a-zA-Z0-9]*)(\s+[^\n]+)?
ParseSectionParam (?<=^|\s)-([a-zA-Z])\s*(\S+)
- ParseSectionRef (?<=^\s*|;\s*)%([a-zA-Z][a-zA-Z0-9]*)(\s+[^\n]+)?
- ParseParamRef \$([0-9])
NameConfig config
NameCommon common
+ NameDefault default
+ NameError error
Execute root %s
Execute !root sudo %s
@@ -53,7 +54,7 @@
=item F</cw/etc/rc.func> (C<%common> extensions)
-This is the B<OpenPKG> Bourne-Shell script providing a set of reusable
+This is the B<OpenPKG> Bourne shell script providing a set of reusable
functions. It is installed at B<OpenPKG> bootstrap time and used
read-only.
@@ -85,7 +86,7 @@
This is the B<OpenPKG> configuration script where the administrator
overrides the variables from the script's C<%config> sections. It it
generated (as an empty file) on B<OpenPKG> bootstrap time and manually
-edited later to influence the behaviours of the package's run-command
+edited later to influence the behaviours of the package's runcommand
scripts (here F</cw/etc/rc.d/rc.foo>).
foo_enable=yes
@@ -93,7 +94,7 @@
=item F</cw/etc/rc.d/rc.foo>
-This is the example run-command script of an B<OpenPKG> package C<foo>.
+This is the example runcommand script of an B<OpenPKG> package C<foo>.
It is installed by package C<foo> and used read-only.
#!/cw/etc/rc
|
|