public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/devmanual:master commit in: tasks-reference/init-scripts/
Date: Fri, 18 Jun 2021 05:10:04 +0000 (UTC)	[thread overview]
Message-ID: <1623992924.f8bd9cf56d47b2d4b0f1a2913dc387494f287134.sam@gentoo> (raw)

commit:     f8bd9cf56d47b2d4b0f1a2913dc387494f287134
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 10 01:26:34 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 18 05:08:44 2021 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=f8bd9cf5

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 <AT> gentoo.org>
Closes: https://github.com/gentoo/devmanual/pull/219
Signed-off-by: Sam James <sam <AT> gentoo.org>

 tasks-reference/init-scripts/text.xml | 6 ++++++
 1 file changed, 6 insertions(+)

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
@@ -13,6 +13,12 @@ should be handled via entries in <c>/etc/conf.d</c> with the same filename <d />
 <c>doconfd</c> or <c>newconfd</c> can be used to install these.
 </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">


             reply	other threads:[~2021-06-18  5:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-18  5:10 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-04-07 17:35 [gentoo-commits] proj/devmanual:master commit in: tasks-reference/init-scripts/ Ulrich Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1623992924.f8bd9cf56d47b2d4b0f1a2913dc387494f287134.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox