Debian Bug report logs - #904558
What should happen when maintscripts fail to restart a service

Package: tech-ctte; Maintainer for tech-ctte is Technical Committee <[email protected]>;

Reported by: Sean Whitton <[email protected]>

Date: Wed, 25 Jul 2018 04:12:02 UTC

Severity: normal

Done: Margarita Manterola <[email protected]>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#904558: What should happen when maintscripts fail to restart a service
Reply-To: Ian Jackson <[email protected]>, [email protected]
Resent-From: Ian Jackson <[email protected]>
Resent-To: [email protected]
Resent-CC: Technical Committee <[email protected]>
X-Loop: [email protected]
Resent-Date: Tue, 09 Oct 2018 11:27:05 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 904558
X-Debian-PR-Package: tech-ctte
X-Debian-PR-Keywords: 
References: <[email protected]> <[email protected]> <[email protected]> <[email protected]>
Received: via spool by [email protected] id=B904558.153908432812241
          (code B ref 904558); Tue, 09 Oct 2018 11:27:05 +0000
Received: (at 904558) by bugs.debian.org; 9 Oct 2018 11:25:28 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.1-bugs.debian.org_2005_01_02
	(2015-04-28) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-13.4 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER,
	MURPHY_DRUGS_REL2,PRESCRIPTION,RCVD_IN_DNSWL_MED,TXREP autolearn=ham
	autolearn_force=no version=3.4.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 7; hammy, 149; neutral, 108; spammy,
	1. spammytokens:0.998-+--prescription hammytokens:0.000-+--H*RU:sk:chiark.,
	0.000-+--H*r:sk:chiark., 0.000-+--H*UA:24.4.1, 0.000-+--H*M:greenend,
	0.000-+--Hx-spam-relays-external:sk:chiark.
Received: from v6.chiark.greenend.org.uk ([2001:ba8:1e3::] helo=chiark.greenend.org.uk)
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.89)
	(envelope-from <[email protected]>)
	id 1g9q8m-0003B8-IS
	for [email protected]; Tue, 09 Oct 2018 11:25:28 +0000
Received: by chiark.greenend.org.uk (Debian Exim 4.84_2 #1) with local
	(return-path [email protected])
	id 1g9q8h-0005Yk-AB; Tue, 09 Oct 2018 12:25:23 +0100
From: Ian Jackson <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <[email protected]>
Date: Tue, 9 Oct 2018 12:25:22 +0100
To: Wouter Verhelst <[email protected]>
Cc: Simon McVittie <[email protected]>,
    [email protected],
    Margarita Manterola <[email protected]>,
    Sean Whitton <[email protected]>,
    Tollef Fog Heen <[email protected]>,
    Anthony DeRobertis <[email protected]>,
    Gunnar Wolf <[email protected]>,
    Stuart Prescott <[email protected]>
In-Reply-To: <[email protected]>
X-Mailer: VM 8.2.0b under 24.4.1 (i586-pc-linux-gnu)
Wouter Verhelst writes ("Re: Bug#904558: What should happen when maintscripts fail to restart a service"):
> Perhaps the error handler should also be configurable by policy-rc.d, as
> I hinted to before.

I think this is a key point.  We do not have to make a single decision
which everyone has to be happy with.  We can instead continue to be
all things to all people.

I think the best answer would be:

 * Individual maintainers decide for themselves whether to treat
   service (re)start failure as postinst failure, based on their own
   perception; maintainers may make different decisions for different
   init systems.

 * If the maintainer has no particular reason to diverge the right
   answer is usually to fail the postinst with init systems that do
   not provide service supervision; but to not fail the postinst with
   ones that do.  (I think from earlier messages that this is how the
   default implementations already work.)

 * The administrator should be able to override this policy question
   globally for the whole system, or on a per-package basis.

This is probably a manageable amount of actual work: the prescription
for individual package sis roughly what they do right now.

The support for configuration in something like policy-rc.d has a few
design decisions to be made but doesn't seem really difficult.  Also
nothing blocks on it.  The TC would simply be saying "this would be a
good thing to have".

Ian.

-- 
Ian Jackson <[email protected]>   These opinions are my own.

If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 18:36:13 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.