1 |
commit: f8bd9cf56d47b2d4b0f1a2913dc387494f287134 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 10 01:26:34 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 18 05:08:44 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=f8bd9cf5 |
7 |
|
8 |
tasks-reference/init-scripts: mention required POSIX compliance |
9 |
|
10 |
OpenRC init scripts need to be POSIX compliant and should not therefore |
11 |
use Bash-specific tests or constructs, unlike ebuilds. |
12 |
|
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
Closes: https://github.com/gentoo/devmanual/pull/219 |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
tasks-reference/init-scripts/text.xml | 6 ++++++ |
18 |
1 file changed, 6 insertions(+) |
19 |
|
20 |
diff --git a/tasks-reference/init-scripts/text.xml b/tasks-reference/init-scripts/text.xml |
21 |
index 17f509c..3296e38 100644 |
22 |
--- a/tasks-reference/init-scripts/text.xml |
23 |
+++ b/tasks-reference/init-scripts/text.xml |
24 |
@@ -13,6 +13,12 @@ should be handled via entries in <c>/etc/conf.d</c> with the same filename <d /> |
25 |
<c>doconfd</c> or <c>newconfd</c> can be used to install these. |
26 |
</p> |
27 |
|
28 |
+<p> |
29 |
+Please note that unlike ebuilds, init scripts for OpenRC are expected to be |
30 |
+POSIX-compliant and must therefore avoid e.g. Bash-specific tests and |
31 |
+constructs. |
32 |
+</p> |
33 |
+ |
34 |
<p> |
35 |
An overview of the Gentoo init system and how to write init scripts is available |
36 |
in the <uri link="https://wiki.gentoo.org/wiki/Handbook:X86/Working/Initscripts#Writing_initscripts"> |