Source: maint-guide
Version: 1.2.43
Severity: normal
Tags: patch

§5.10 of maint-guide mentions using /etc/default to disable a demon. However,
§9.3.3.1 of Debian Policy states

    An older practice, which should not be used, was to include a line
    like DISABLED=yes in the package’s /etc/default file. The package’s
    init script would not start the service until the local system
    administrator changed this to DISABLED=no, or similar. [...]

maint-guide should not suggest discouraged practices as valid use cases.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.3.0-1-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_CA.UTF-8), LANGUAGE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set 
to en_CA.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- 
|)|/  Ryan Kavanagh      | GPG: 4E46 9519 ED67 7734 268F
|\|\  https://rak.ac     |      BD95 8F7B F8FC 4A11 C97A
From c5ad787ac447527aa12d1f5f20634d9a0e6a0db4 Mon Sep 17 00:00:00 2001
From: Ryan Kavanagh <r...@debian.org>
Date: Fri, 22 Nov 2019 18:17:36 -0500
Subject: [PATCH] /etc/default should not be used to disable services
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

§9.3.3.1 of Debian Policy states

    An older practice, which should not be used, was to include a line
    like DISABLED=yes in the package’s /etc/default file. The package’s
    init script would not start the service until the local system
    administrator changed this to DISABLED=no, or similar. [...]

maint-guide should not suggest discouraged practices as valid use cases.
---
 doc/05_dother.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/05_dother.xml b/doc/05_dother.xml
index 6e78b5a..31f70f9 100644
--- a/doc/05_dother.xml
+++ b/doc/05_dother.xml
@@ -341,7 +341,7 @@ be installed as
 <filename>/etc/default/<replaceable>package</replaceable></filename>.  This
 file sets defaults that are sourced by the init script.  This
 <filename><replaceable>package</replaceable>.default</filename> file
-is most often used to disable running a daemon, or to set some default flags or
+is most often used to set some default flags or
 timeouts.  If your init script has certain configurable
 features, you can set them in the <filename><replaceable>package</replaceable>.default</filename> file,
 instead of in the init script itself.
-- 
2.24.0

Attachment: signature.asc
Description: PGP signature

Reply via email to