summaryrefslogtreecommitdiffstats
path: root/tags/i/init.d-script-uses-usr-interpreter.tag
blob: 203c76574c33839e9f098221c6f3968124def674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.