1 |
swift 11/09/17 12:45:11 |
2 |
|
3 |
Modified: hb-working-rcscripts.xml |
4 |
Log: |
5 |
Bug #382373 - Use extra_commands instead of opts. Reported by Thomas Kahle |
6 |
|
7 |
Revision Changes Path |
8 |
1.36 xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml?rev=1.36&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml?rev=1.36&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml?r1=1.35&r2=1.36 |
13 |
|
14 |
Index: hb-working-rcscripts.xml |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml,v |
17 |
retrieving revision 1.35 |
18 |
retrieving revision 1.36 |
19 |
diff -u -r1.35 -r1.36 |
20 |
--- hb-working-rcscripts.xml 17 Aug 2011 07:57:23 -0000 1.35 |
21 |
+++ hb-working-rcscripts.xml 17 Sep 2011 12:45:11 -0000 1.36 |
22 |
@@ -4,7 +4,7 @@ |
23 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
24 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
25 |
|
26 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml,v 1.35 2011/08/17 07:57:23 swift Exp $ --> |
27 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml,v 1.36 2011/09/17 12:45:11 swift Exp $ --> |
28 |
|
29 |
<sections> |
30 |
|
31 |
@@ -14,8 +14,8 @@ |
32 |
these aspects and explains how to deal with these scripts. |
33 |
</abstract> |
34 |
|
35 |
-<version>4</version> |
36 |
-<date>2011-08-17</date> |
37 |
+<version>5</version> |
38 |
+<date>2011-09-17</date> |
39 |
|
40 |
<section> |
41 |
<title>Runlevels</title> |
42 |
@@ -719,13 +719,13 @@ |
43 |
|
44 |
<p> |
45 |
If you want your init script to support more options than the ones we have |
46 |
-already encountered, you should add the option to the <c>opts</c> variable, and |
47 |
-create a function with the same name as the option. For instance, to support an |
48 |
-option called <c>restartdelay</c>: |
49 |
+already encountered, you should add the option to the <c>extra_commands</c> |
50 |
+variable, and create a function with the same name as the option. For instance, |
51 |
+to support an option called <c>restartdelay</c>: |
52 |
</p> |
53 |
|
54 |
<pre caption="Supporting the restartdelay option"> |
55 |
-opts="${opts} restartdelay" |
56 |
+extra_commands="restartdelay" |
57 |
|
58 |
restartdelay() { |
59 |
stop |