Devuan bug report logs - #749
initscripts: /etc/init.d/halt calls halt with unsupported options

Package: runit-init; Reported by: Olaf Meeuwissen <[email protected]>; Keywords: debian; Done: Mark Hindley <[email protected]>; Maintainer for runit-init is (unknown).

Message received at [email protected]:


Received: (at 749-done) by bugs.devuan.org; 20 Jun 2023 06:31:34 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2a01:4f8:140:32a1::58c6:6473]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Tue, 20 Jun 2023 06:31:34 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id IvS4KJVHkWT6RAAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Tue, 20 Jun 2023 06:30:45 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 9A0A5615; Tue, 20 Jun 2023 06:30:45 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; [email protected]; receiver=<UNKNOWN> 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id 4132D29
	for <[email protected]>; Tue, 20 Jun 2023 06:30:40 +0000 (UTC)
Received: from hindley.org.uk (apollo.hindleynet [192.168.1.3])
	by mx.hindley.org.uk (Postfix) with SMTP id 1D927923
	for <[email protected]>; Tue, 20 Jun 2023 07:30:39 +0100 (BST)
Received: (nullmailer pid 8847 invoked by uid 1000);
	Tue, 20 Jun 2023 06:30:39 -0000
Date: Tue, 20 Jun 2023 07:30:39 +0100
From: Mark Hindley <[email protected]>
To: [email protected]
Subject: Fixed in Debian #1032943
Message-ID: <ZJFHjz3rmHNATEx/@hindley.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debbugs-No-Ack: No Thanks

Version: 2.1.2-55

Notification sent to Olaf Meeuwissen <[email protected]>:
bug acknowledged by developer. Full text available.
Reply sent to Mark Hindley <[email protected]>:
You have taken responsibility. Full text available.
No longer marked as found in versions sysvinit/3.06-2devuan1. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.
bug reassigned from package 'initscripts' to 'runit-init'. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at 749-submitter) by bugs.devuan.org; 14 Mar 2023 17:04:32 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Tue, 14 Mar 2023 17:04:32 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id w7+QAvaoEGTnLwAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Tue, 14 Mar 2023 17:03:50 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id E4695970; Tue, 14 Mar 2023 17:03:49 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; [email protected]; receiver=<UNKNOWN> 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id 900AA66E;
	Tue, 14 Mar 2023 17:03:33 +0000 (UTC)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1pc83Z-0004JZ-NZ; Tue, 14 Mar 2023 17:03:25 +0000
Received: (nullmailer pid 7289 invoked by uid 1000);
	Tue, 14 Mar 2023 17:03:25 -0000
Date: Tue, 14 Mar 2023 17:03:24 +0000
From: Mark Hindley <[email protected]>
To: Lorenzo <[email protected]>, [email protected]
Cc: [email protected]
Subject: Re: bug#749: initscripts: /etc/init.d/halt calls halt with
 unsupported options
Message-ID: <ZBCo3KI/[email protected]>
References: <874jqv5t46.fsf@basecamp>
 <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
X-Debbugs-No-Ack: No Thanks

Control: tags -1 debian
Control: forwarded -1  https://bugs.debian.org/1032943

On Tue, Mar 14, 2023 at 02:40:45PM +0100, Lorenzo wrote:
> 
> > On Wed, 8 Mar 2023 12:43:30 +0000
> > Mark Hindley <[email protected]> wrote:
> 
> > > Is there
> > > something you can do within src:runit to avoid this?
> > I think reassigning this to runit as Debian bug with severity minor is
> > appropriate.
> > 
> I've just opened a bug against runit-init

Lorenzo,

Thanks. Setting tags and forwarded.

Mark

Message sent on to Olaf Meeuwissen <[email protected]>:
bug#749. Full text available.
Set bug forwarded-to-address to 'https://bugs.debian.org/1032943'. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.
Added tag(s) debian. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at 749) by bugs.devuan.org; 14 Mar 2023 17:04:32 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Tue, 14 Mar 2023 17:04:32 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id w7+QAvaoEGTnLwAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Tue, 14 Mar 2023 17:03:50 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id E4695970; Tue, 14 Mar 2023 17:03:49 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; [email protected]; receiver=<UNKNOWN> 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id 900AA66E;
	Tue, 14 Mar 2023 17:03:33 +0000 (UTC)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1pc83Z-0004JZ-NZ; Tue, 14 Mar 2023 17:03:25 +0000
Received: (nullmailer pid 7289 invoked by uid 1000);
	Tue, 14 Mar 2023 17:03:25 -0000
Date: Tue, 14 Mar 2023 17:03:24 +0000
From: Mark Hindley <[email protected]>
To: Lorenzo <[email protected]>, [email protected]
Cc: [email protected]
Subject: Re: bug#749: initscripts: /etc/init.d/halt calls halt with
 unsupported options
Message-ID: <ZBCo3KI/[email protected]>
References: <874jqv5t46.fsf@basecamp>
 <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
X-Debbugs-No-Ack: No Thanks

Control: tags -1 debian
Control: forwarded -1  https://bugs.debian.org/1032943

On Tue, Mar 14, 2023 at 02:40:45PM +0100, Lorenzo wrote:
> 
> > On Wed, 8 Mar 2023 12:43:30 +0000
> > Mark Hindley <[email protected]> wrote:
> 
> > > Is there
> > > something you can do within src:runit to avoid this?
> > I think reassigning this to runit as Debian bug with severity minor is
> > appropriate.
> > 
> I've just opened a bug against runit-init

Lorenzo,

Thanks. Setting tags and forwarded.

Mark

Information forwarded to [email protected], Devuan Developers <[email protected]>:
bug#749; Package initscripts. Full text available.

Message received at [email protected]:


Received: (at 749) by bugs.devuan.org; 14 Mar 2023 13:42:17 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Tue, 14 Mar 2023 13:42:16 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id Q+GwBX15EGS7KwAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Tue, 14 Mar 2023 13:41:17 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id F2A3C66D; Tue, 14 Mar 2023 13:41:16 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED,
	SPF_PASS autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=178.21.23.139; helo=knopi.disroot.org; [email protected]; receiver=<UNKNOWN> 
Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139])
	by email.devuan.org (Postfix) with ESMTPS id 9D03C34
	for <[email protected]>; Tue, 14 Mar 2023 13:41:00 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by disroot.org (Postfix) with ESMTP id 93E034179B
	for <[email protected]>; Tue, 14 Mar 2023 14:40:53 +0100 (CET)
X-Virus-Scanned: SPAM Filter at disroot.org
Received: from knopi.disroot.org ([127.0.0.1])
	by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id nZr5G76lRZ_Y for <[email protected]>;
	Tue, 14 Mar 2023 14:40:52 +0100 (CET)
Date: Tue, 14 Mar 2023 14:40:45 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
	t=1678801252; bh=3KmSeChDPLV9q/j9ENoeDv4Q0hn2LoyiH03sSmNhHvw=;
	h=Date:From:To:Subject:In-Reply-To;
	b=UAyAv5lXqVlNUj3FVL+65QeQAVoBgBbvFbLwW2VCgyTJe0gFQAfGP/v4hL5v5J8YC
	 LLwAZHnQ7PKfTyqRYDp6hB/MyItoxwRjkXD5ZDjZXgFR5z0Ls9/LJuclXS+KVKOza0
	 G36Q+Gh7UA5fQv8l2HSIKc4+95gPfsEqu6Tywwz0JJ9K+2m3+2BCVE/yzrpBcgMIC1
	 UVPVw+a5fBlxlwPlXlv4HlHj0Tk/cwx2JzsTATc613cwIaJzBFEdKe4XdBmH9Bj0hU
	 NbWduGjQ2qdl63CzgFl32AkVZuBXHnbdLlGidXoXcuHYi3qJqhiHVU/jJ928R3W8PX
	 2sJwowN5o6xhA==
From: Lorenzo <[email protected]>
To: [email protected]
Subject: Re: bug#749: initscripts: /etc/init.d/halt calls halt with 
 unsupported options
Message-ID: <[email protected]>
In-Reply-To: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


> On Wed, 8 Mar 2023 12:43:30 +0000
> Mark Hindley <[email protected]> wrote:

> > Is there
> > something you can do within src:runit to avoid this?
> I think reassigning this to runit as Debian bug with severity minor is
> appropriate.
> 
I've just opened a bug against runit-init
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032943
I think this bug can be closed

Lorenzo

Acknowledgement sent to Lorenzo <[email protected]>:
Extra info received and forwarded to list. Copy sent to Devuan Developers <[email protected]>. Full text available.
Information forwarded to [email protected], Devuan Developers <[email protected]>:
bug#749; Package initscripts. Full text available.

Message received at [email protected]:


Received: (at 749) by bugs.devuan.org; 11 Mar 2023 01:15:05 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Sat, 11 Mar 2023 01:15:05 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id fXmOKw/WC2QxGwAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Sat, 11 Mar 2023 01:14:55 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 81959979; Sat, 11 Mar 2023 01:14:55 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED,
	SPF_PASS autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=178.21.23.139; helo=knopi.disroot.org; [email protected]; receiver=<UNKNOWN> 
Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139])
	by email.devuan.org (Postfix) with ESMTPS id 197CB63C
	for <[email protected]>; Sat, 11 Mar 2023 01:14:39 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by disroot.org (Postfix) with ESMTP id AC6734206B;
	Sat, 11 Mar 2023 02:14:32 +0100 (CET)
X-Virus-Scanned: SPAM Filter at disroot.org
Received: from knopi.disroot.org ([127.0.0.1])
	by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id uaOlfW9OfZXb; Sat, 11 Mar 2023 02:14:31 +0100 (CET)
Date: Sat, 11 Mar 2023 02:14:24 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
	t=1678497271; bh=gOY6WF6X8n454qdK6CEaeDyRq6uZzNP+OcdxTDjDxfA=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=iG22Skn5jVtvd+3zciiIeaAfa5G8TeFevdGA/yHidhzm0OdW98+Ry2D/Pohgp43FZ
	 sSn5L0KRQtGVO034Y4zbb+2JL2QAUKdHURbG0dCT/l5irGGRo5j3ISEOQCQmpHxKJO
	 9+YF9roOqv+ESxWWmfgbHh0D7yvg2+SHprLHUJNSvTx05rwsCMnKhQIxullfwImO9D
	 whJSzjCT+s3kqz2NMyFk7Zz8gRoc2TDzWx38IhMjXnCAYeKCenFwqPeX1/3EWnDlmq
	 axjo+eNsddP3ZBUbkkyBSHK9a6pbJd/Gh4SkKlOpc5B644DcztDPb1Cne/6oqfV9LS
	 ACEEcBs62b5lg==
From: Lorenzo <[email protected]>
To: Mark Hindley <[email protected]>
Cc: Olaf Meeuwissen <[email protected]>, [email protected]
Subject: Re: bug#749: initscripts: /etc/init.d/halt calls halt with
 unsupported options
Message-ID: <[email protected]>
In-Reply-To: <[email protected]>
References: <874jqv5t46.fsf@basecamp>
	<[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hello,

On Wed, 8 Mar 2023 12:43:30 +0000
Mark Hindley <[email protected]> wrote:

> > where the symlink target is from the runit package.  According to
> > the manual page, my halt command only supports -f, -w and -n short
> > options.
> 
> My gut reaction is that runit's halt should either support the
> sysvinit options even if noop.

The current behavior of runit's halt is that options -d -h -p -i
are ignored except that a warning is printed (the exit status is zero).
They are not really noop, since in the original sysvinit implementation
each of -d -h -p -i imply halting/poweroff the system, so that's what
runit's halt does after "ignoring" such options.
I've tested in the past that if I turn -d -h -p -i into noop
the switch sysvinit --> runit-init is broken, so I don't want to do
that.
What is left on runit's side is that I can silence the warning (but I
don't think is a good behavior for a program to silently ignore some
options - it can be documented in the man page though) or add a special
case in 'run_sysv_script' so that 'reboot' and 'halt' scripts are
skipped during runit shutdown sequence.

> 
> Lorenzo,
> 
> I have no real experience of runit yet. What is the relationship
> between it an initscripts? When are the initscripts used?

Runit is currently borrowing from sysvinit (initscripts package)
scripts to initialize and shutdown the system; it runs sequentially
scripts from /etc/rcS.d/ to boot the system and scripts from /etc/rc0.d/
or /etc/rc6.d/ for shutdown/reboot.

> Is there
> something you can do within src:runit to avoid this?
I think reassigning this to runit as Debian bug with severity minor is
appropriate.

Lorenzo

> 
> Thanks
> 
> Mark


Acknowledgement sent to Lorenzo <[email protected]>:
Extra info received and forwarded to list. Copy sent to Devuan Developers <[email protected]>. Full text available.
Information forwarded to [email protected], Devuan Developers <[email protected]>:
bug#749; Package initscripts. Full text available.

Message received at [email protected]:


Received: (at 749) by bugs.devuan.org; 8 Mar 2023 12:43:38 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Wed, 08 Mar 2023 12:43:38 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id IwugF/qCCGR5LgAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Wed, 08 Mar 2023 12:43:38 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 3189E96F; Wed,  8 Mar 2023 12:43:37 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; [email protected]; receiver=<UNKNOWN> 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id F2952895
	for <[email protected]>; Wed,  8 Mar 2023 12:43:32 +0000 (UTC)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1pZt8k-0005Uy-Jr; Wed, 08 Mar 2023 12:43:30 +0000
Received: (nullmailer pid 21221 invoked by uid 1000);
	Wed, 08 Mar 2023 12:43:30 -0000
Date: Wed, 8 Mar 2023 12:43:30 +0000
From: Mark Hindley <[email protected]>
To: Olaf Meeuwissen <[email protected]>, [email protected]
Cc: Lorenzo Puliti <[email protected]>
Subject: Re: bug#749: initscripts: /etc/init.d/halt calls halt with
 unsupported options
Message-ID: <[email protected]>
References: <874jqv5t46.fsf@basecamp>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <874jqv5t46.fsf@basecamp>
X-Debbugs-No-Ack: No Thanks

Olaf,

On Wed, Mar 08, 2023 at 08:44:01PM +0900, Olaf Meeuwissen wrote:
> Package: initscripts
> Version: 3.06-2devuan1
> Severity: normal
> X-Debbugs-Cc: none, Olaf Meeuwissen <[email protected]>
> 
> Dear Maintainer,
> 
> Every time I `poweroff` my machine, I see error message flash by that
> complain about `halt` being called with unsupported options.  I think
> I have tracked this down to /etc/init.d/halt making blind assumptions
> about the options supported by the `halt` command.

Thanks. We keep bumping into issues similar to this with the different halt
implementations.

I don't immediately have a really good solution.

> Said command may be provided by any of a number of packages.  A quick
> `apt-file search sbin/halt` turns up
> 
>   $ apt-file search sbin/halt
>   bfh-container: /sbin/halt
>   finit-sysv: /sbin/halt
>   molly-guard: /sbin/halt
>   progress-linux-container: /sbin/halt
>   runit-init: /sbin/halt
>   systemd-sysv: /sbin/halt
>   sysvinit-core: /sbin/halt
> 
> Mine happens to be
> 
>   $ ls -l /sbin/halt
>   lrwxrwxrwx 1 root root 19 Feb 10 03:45 /sbin/halt -> /lib/runit/shutdown
> 
> where the symlink target is from the runit package.  According to the
> manual page, my halt command only supports -f, -w and -n short options.

My gut reaction is that runit's halt should either support the sysvinit options
even if noop.

Lorenzo,

I have no real experience of runit yet. What is the relationship between it an
initscripts? When are the initscripts used? Is there something you can do within
src:runit to avoid this?

Thanks

Mark

Information forwarded to [email protected], Devuan Developers <[email protected]>:
bug#749; Package initscripts. Full text available.

Message received at [email protected]:


Received: (at submit) by bugs.devuan.org; 8 Mar 2023 12:25:37 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Wed, 08 Mar 2023 12:25:37 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id 6JWxIWt+CGTnLQAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Wed, 08 Mar 2023 12:24:11 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 77B6796F; Wed,  8 Mar 2023 12:24:11 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_PASS,UNPARSEABLE_RELAY
	autolearn=ham autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=202.238.237.3; helo=mo-sw.mose-mail.jp; [email protected]; receiver=<UNKNOWN> 
Received: from mo-sw.mose-mail.jp (mo-sw1801-0.mose-mail.jp [202.238.237.3])
	by email.devuan.org (Postfix) with ESMTPS id 45DD5895
	for <[email protected]>; Wed,  8 Mar 2023 12:24:03 +0000 (UTC)
Received: by mo-sw.mose-mail.jp (mose-mo-sw1801) id 328CNvXR009297; Wed, 8 Mar 2023 21:23:57 +0900
Received: from basecamp (localhost [127.0.0.1])
	by mbox.mose-mail.jp (mose-mbox1802) id 328CNrAu007501
	for <[email protected]>; Wed, 8 Mar 2023 21:23:54 +0900
Received: from olaf (uid 1000)
	(envelope-from [email protected])
	id 19f426
	by basecamp (DragonFly Mail Agent v0.13);
	Wed, 08 Mar 2023 21:23:53 +0900
User-agent: mu4e 1.8.13; emacs 28.2
From: Olaf Meeuwissen <[email protected]>
To: Devuan Bug Tracking System <[email protected]>
Subject: initscripts: /etc/init.d/halt calls halt with unsupported options
Date: Wed, 08 Mar 2023 20:44:01 +0900
Message-ID: <874jqv5t46.fsf@basecamp>
MIME-Version: 1.0
Content-Type: text/plain

Package: initscripts
Version: 3.06-2devuan1
Severity: normal
X-Debbugs-Cc: none, Olaf Meeuwissen <[email protected]>

Dear Maintainer,

Every time I `poweroff` my machine, I see error message flash by that
complain about `halt` being called with unsupported options.  I think
I have tracked this down to /etc/init.d/halt making blind assumptions
about the options supported by the `halt` command.

Said command may be provided by any of a number of packages.  A quick
`apt-file search sbin/halt` turns up

  $ apt-file search sbin/halt
  bfh-container: /sbin/halt
  finit-sysv: /sbin/halt
  molly-guard: /sbin/halt
  progress-linux-container: /sbin/halt
  runit-init: /sbin/halt
  systemd-sysv: /sbin/halt
  sysvinit-core: /sbin/halt

Mine happens to be

  $ ls -l /sbin/halt
  lrwxrwxrwx 1 root root 19 Feb 10 03:45 /sbin/halt -> /lib/runit/shutdown

where the symlink target is from the runit package.  According to the
manual page, my halt command only supports -f, -w and -n short options.

The /etc/init.d/halt script may invokes the halt command with -d and -f
options and may add any of -i, -p and -h.

BTW, I also have runit-init installed which provides the `poweroff` and
`halt` commands that get executed.  Seeing that runit-init depends on
initscripts one could argue that runit-init should support those options
in which case feel free to forward this to that package (in the Debian
BTS).  From past experience, its maintainer is open to init freedom ;-)

If not a runit-init issue, this may still be worthwhile to upstream to
the Debian BTS for initscripts.  Even the systemd-sysv `halt` does not
claim to support -i or -h options in its manual page :-o

-- System Information:
Architecture: x86_64

Kernel: Linux 6.1.0-3-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: runit (via /run/runit.stopit)
LSM: AppArmor: enabled

Versions of packages initscripts depends on:
ii  sysv-rc         3.06-2devuan1
ii  sysvinit-utils  3.06-2devuan1

Versions of packages initscripts recommends:
ii  e2fsprogs  1.46.6-1
pn  psmisc     <none>

initscripts suggests no packages.

-- no debconf information

Hope this helps,
--
Olaf Meeuwissen

Acknowledgement sent to Olaf Meeuwissen <[email protected]>:
New bug report received and forwarded. Copy sent to none, [email protected], Devuan Developers <[email protected]>. Full text available.
Report forwarded to [email protected], none, [email protected], Devuan Developers <[email protected]>:
bug#749; Package initscripts. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <[email protected]>.
Last modified: Sun, 1 Dec 2024 00:39:02 UTC