diff options
Diffstat (limited to '')
-rw-r--r-- | tags/i/init.d-script-should-always-start-service.tag | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tags/i/init.d-script-should-always-start-service.tag b/tags/i/init.d-script-should-always-start-service.tag new file mode 100644 index 0000000..c26c24a --- /dev/null +++ b/tags/i/init.d-script-should-always-start-service.tag @@ -0,0 +1,19 @@ +Tag: init.d-script-should-always-start-service +Severity: error +Check: init-d +Explanation: The specified file under <code>/etc/default/</code> includes a line + such as <code>ENABLED=</code>, <code>DISABLED=</code>, <code>RUN=</code>, etc. + . + This is an older practice used so that the package's init script would + not start the service until the local system administrator changed this + value. + . + However, this hides from the underlying init system whether or not the + daemon should actually be started leading to confusing behavior + including <code>service package start</code> returning success without the + service actually starting. + . + Please remove this mechanism and disable enabling the daemon on install + via <code>dh_installinit --no-enable</code> or move to automatically + starting it. +See-Also: debian-policy 9.3.3.1, update-rc.d(8), dh_installinit(1) |