From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by finch.gentoo.org (Postfix) with ESMTPS id 0CC371382C5
for ; Fri, 18 Jun 2021 05:10:10 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
by pigeon.gentoo.org (Postfix) with SMTP id 18704E076B;
Fri, 18 Jun 2021 05:10:08 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by pigeon.gentoo.org (Postfix) with ESMTPS id BB2B2E076B
for ; Fri, 18 Jun 2021 05:10:07 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.gentoo.org (Postfix) with ESMTPS id 0A644335CE9
for ; Fri, 18 Jun 2021 05:10:06 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
by oystercatcher.gentoo.org (Postfix) with ESMTP id 52AAE7A2
for ; Fri, 18 Jun 2021 05:10:04 +0000 (UTC)
From: "Sam James"
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James"
Message-ID: <1623992924.f8bd9cf56d47b2d4b0f1a2913dc387494f287134.sam@gentoo>
Subject: [gentoo-commits] proj/devmanual:master commit in: tasks-reference/init-scripts/
X-VCS-Repository: proj/devmanual
X-VCS-Files: tasks-reference/init-scripts/text.xml
X-VCS-Directories: tasks-reference/init-scripts/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: f8bd9cf56d47b2d4b0f1a2913dc387494f287134
X-VCS-Branch: master
Date: Fri, 18 Jun 2021 05:10:04 +0000 (UTC)
Precedence: bulk
List-Post:
List-Help:
List-Unsubscribe:
List-Subscribe:
List-Id: Gentoo Linux mail
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 55b18f5d-3375-4f8e-89fe-eb41a53730a4
X-Archives-Hash: caa8f27d35226b4ac03ca75302a43bd0
commit: f8bd9cf56d47b2d4b0f1a2913dc387494f287134
Author: Sam James gentoo org>
AuthorDate: Sat Apr 10 01:26:34 2021 +0000
Commit: Sam James gentoo 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 gentoo.org>
Closes: https://github.com/gentoo/devmanual/pull/219
Signed-off-by: Sam James 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 /etc/conf.d with the same filename
doconfd or newconfd can be used to install these.
+
+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.
+
+
An overview of the Gentoo init system and how to write init scripts is available
in the