summaryrefslogtreecommitdiffstats
path: root/tags/i/init.d-script-uses-usr-interpreter.tag
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /tags/i/init.d-script-uses-usr-interpreter.tag
parentInitial commit. (diff)
downloadlintian-upstream.tar.xz
lintian-upstream.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tags/i/init.d-script-uses-usr-interpreter.tag')
-rw-r--r--tags/i/init.d-script-uses-usr-interpreter.tag15
1 files changed, 15 insertions, 0 deletions
diff --git a/tags/i/init.d-script-uses-usr-interpreter.tag b/tags/i/init.d-script-uses-usr-interpreter.tag
new file mode 100644
index 0000000..203c765
--- /dev/null
+++ b/tags/i/init.d-script-uses-usr-interpreter.tag
@@ -0,0 +1,15 @@
+Tag: init.d-script-uses-usr-interpreter
+Severity: warning
+Check: init-d
+Explanation: The given <code>/etc/init.d</code> script specifies an interpreter in
+ its shebang located under <code>/usr</code>.
+ .
+ It indicates that the init script may be using a non-essential
+ interpreter. Since init scripts are configuration files, they may be
+ left on the system after their package has been removed but not purged.
+ At that point, the package dependencies are not guaranteed to exist and
+ the interpreter may therefore not be available.
+ .
+ It's generally best to write init scripts using <code>/bin/sh</code> or
+ <code>/bin/bash</code> where possible, since they are guaranteed to always be
+ available.