aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-10 01:26:34 +0000
committerSam James <sam@gentoo.org>2021-06-18 06:08:44 +0100
commitf8bd9cf56d47b2d4b0f1a2913dc387494f287134 (patch)
treeaf296bcf57d459f81049b815f221eea41bda6f88
parentebuild-writing/functions: mention defining phases in the canonical order (diff)
downloaddevmanual-f8bd9cf5.tar.gz
devmanual-f8bd9cf5.tar.bz2
devmanual-f8bd9cf5.zip
tasks-reference/init-scripts: mention required POSIX compliance
OpenRC init scripts need to be POSIX compliant and should not therefore use Bash-specific tests or constructs, unlike ebuilds. Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/gentoo/devmanual/pull/219 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--tasks-reference/init-scripts/text.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tasks-reference/init-scripts/text.xml b/tasks-reference/init-scripts/text.xml
index 17f509c..3296e38 100644
--- a/tasks-reference/init-scripts/text.xml
+++ b/tasks-reference/init-scripts/text.xml
@@ -14,6 +14,12 @@ should be handled via entries in <c>/etc/conf.d</c> with the same filename <d />
</p>
<p>
+Please note that unlike ebuilds, init scripts for OpenRC are expected to be
+POSIX-compliant and must therefore avoid e.g. Bash-specific tests and
+constructs.
+</p>
+
+<p>
An overview of the Gentoo init system and how to write init scripts is available
in the <uri link="https://wiki.gentoo.org/wiki/Handbook:X86/Working/Initscripts#Writing_initscripts">
Writing Init Scripts section</uri> and in the