Bug#934066: sysv-rc: /etc/init.d/README is misleading wrt *.sh

Dmitry Bogatov KAction at debian.org
Thu Aug 8 21:21:34 BST 2019


[2019-08-06 18:36] Adam Borowski <kilobyte at angband.pl>
> Package: sysv-rc
> Version: 2.95-4
> Severity: wishlist
>
> Hi!
> The documentation in /etc/init.d/README talks a lot about *.sh files in that
> dir, in a way that suggests that's the way regular init scripts should be
> named.  Could you please disambiguate?
>
> (Apologies for not submitting patches myself -- I'm on a phoney PDA until
> mid August.)

Copy-editing is welcome.

From 949cb25e210d8f896068a018223c8cc2d78ac98f Mon Sep 17 00:00:00 2001
From: Dmitry Bogatov <KAction at debian.org>
Date: Tue, 6 Aug 2019 22:41:56 +0000
Subject: [PATCH] Do not imply in README that init scripts must have extension

Avoid refererring to init scripts using /etc/init.d/*.sh wildcard,
most of them do not have (and should not!) extension.

Closes: #934066
---
 debian/src/sysv-rc/doc/init.d-README | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/src/sysv-rc/doc/init.d-README b/debian/src/sysv-rc/doc/init.d-README
index 8477036a..9d2d1428 100644
--- a/debian/src/sysv-rc/doc/init.d-README
+++ b/debian/src/sysv-rc/doc/init.d-README
@@ -20,15 +20,15 @@ installed you can probably read it at
 Some more detailed information can also be found in the files in the
 /usr/share/doc/sysv-rc directory.
 
-Debian Policy dictates that /etc/init.d/*.sh scripts must work properly
-when sourced.  The following additional rules apply:
+Debian Policy dictates that scripts in /etc/init.d/ must work properly when
+sourced.  The following additional rules apply:
 
-* /etc/init.d/*.sh scripts must not rely for their correct functioning
+* /etc/init.d/* scripts must not rely for their correct functioning
   on their being sourced rather than executed.  That is, they must work
   properly when executed too. They must include "#!/bin/sh" at the top.
   This is useful when running scripts in parallel.
 
-* /etc/init.d/*.sh scripts must conform to the rules for sh scripts as
+* /etc/init.d/* scripts must conform to the rules for sh scripts as
   spelled out in the Debian policy section entitled "Scripts" (ยง10.4).
 
 Use the update-rc.d command to create symbolic links in the /etc/rc?.d
-- 
Note, that I send and fetch email in batch, once in a few days.
Please, mention in body of your reply when you add or remove recepients.




More information about the Debian-init-diversity mailing list