Debian Bug report logs - #802501
init script failures during postinst and related scripts

Package: debian-policy; Maintainer for debian-policy is Debian Policy Editors <[email protected]>; Source for debian-policy is src:debian-policy (PTS, buildd, popcon).

Reported by: Daniel Pocock <[email protected]>

Date: Tue, 20 Oct 2015 16:09:01 UTC

Severity: normal

Tags: wontfix

Merged with 780403

Full log


Message #10 received at [email protected] (full text, mbox, reply):

Received: (at 802501) by bugs.debian.org; 22 Oct 2015 10:27:32 +0000
From [email protected] Thu Oct 22 10:27:32 2015
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
	(2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-8.8 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,FROMDEVELOPER,
	HAS_BUG_NUMBER,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,
	RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=ham autolearn_force=no
	version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 24; hammy, 136; neutral, 51; spammy,
	1. spammytokens:0.861-+--delivery hammytokens:0.000-+--systemd,
	0.000-+--H*RU:66.111.4.25, 0.000-+--H*RU:sk:out1-sm, 0.000-+--holschuh,
	0.000-+--Holschuh
Return-path: <[email protected]>
Received: from out1-smtp.messagingengine.com ([66.111.4.25])
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.84)
	(envelope-from <[email protected]>)
	id 1ZpD5o-0003uP-3m
	for [email protected]; Thu, 22 Oct 2015 10:27:32 +0000
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42])
	by mailout.nyi.internal (Postfix) with ESMTP id D0CF920D00
	for <[email protected]>; Thu, 22 Oct 2015 06:27:29 -0400 (EDT)
Received: from web2 ([10.202.2.212])
  by compute2.internal (MEProxy); Thu, 22 Oct 2015 06:27:29 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
	messagingengine.com; h=content-transfer-encoding:content-type
	:date:from:in-reply-to:message-id:mime-version:references
	:resent-date:resent-from:resent-message-id:subject:to:x-sasl-enc
	:x-sasl-enc; s=smtpout; bh=E5V1jnjEbYVL4gqmfcuiao9mSWo=; b=J59G7
	mqEfMaeVsOLu1tjyfiVyCNLwbFKLFs45xabWaQA0FimyRnZ01N2gWm6XvFfArX/u
	I0TEJRB3Js19CsogjcBa3hQcZ2ssexgi2PVk7m5kKm8rUJ1RAuSEbi/ODh9nVCdK
	b4+EUPZYb1jCzMLWefZKCEWvium5wxNVl1UHl4=
Received: by web2.nyi.internal (Postfix, from userid 99)
	id A4344540687; Thu, 22 Oct 2015 06:27:29 -0400 (EDT)
Message-Id: <1445509617.1740336.417210377.5AC9CD79@webmail.messagingengine.com>
X-Sasl-enc: dFVpDaH9FEMiB5D0lZnpIO3/Kxkl9tzsyXIzjmBgeFi+ 1445509649
From: Henrique de Moraes Holschuh <[email protected]>
To: [email protected]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain
X-Mailer: MessagingEngine.com Webmail Interface - ajax-25d3ec43
Subject: Re: Bug#802501: init script failures during postinst and related scripts
Date: Thu, 22 Oct 2015 08:26:57 -0200
In-Reply-To: <[email protected]>
References: <[email protected]>
Errors-To: [email protected]
Resent-From: [email protected]
Resent-Date: Thu, 22 Oct 2015 06:27:29 -0400
X-Resent-Provider: messagingengine.com
Resent-Message-Id: <[email protected]>
On Tue, Oct 20, 2015, at 14:08, Daniel Pocock wrote:
> If postinst or one of the other scripts does a service restart and the
> restart operation fails, should the postinst abort or should it mask the
> error, continue and return success?

Whatever makes more sense for that particular service, as in "safer". 
And by safer I do mean: smaller chance of aggravating already present
damage, causing security issues, or data loss".

> If it continues, is there any other convention for reporting the
> problem, e.g. stderr?

You report errors and warnings to stderr, yes.  For sysvinit there is a
shell API that can be used for that.  Systemd might have its own
convention for unit files.

A better way to get error/warning information to the user would be
welcome, but it needs to be properly planned (headless nodes, unattended
upgrades, desktops with crippled local mail delivery/routing, etc).

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique de Moraes Holschuh <[email protected]>



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 13:03:22 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.