From unknown Fri Mar 29 15:14:40 2024 X-Loop: owner@bugs.devuan.org Subject: bug#749: initscripts: /etc/init.d/halt calls halt with unsupported options Reply-To: Mark Hindley , 749@bugs.devuan.org Resent-From: Mark Hindley Resent-To: devuan-bugs@lists.dyne.org Resent-CC: Devuan Developers X-Loop: owner@bugs.devuan.org Resent-Date: Wed, 08 Mar 2023 12:44:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.devuan.org X-Devuan-PR-Message: followup 749 X-Devuan-PR-Package: initscripts X-Devuan-PR-Keywords: References: <874jqv5t46.fsf@basecamp> <874jqv5t46.fsf@basecamp> X-Devuan-PR-Source: sysvinit Received: via spool by 749-submit@bugs.devuan.org id=B749.16782794183874 (code B ref 749); Wed, 08 Mar 2023 12:44:01 +0000 Received: (at 749) by bugs.devuan.org; 8 Mar 2023 12:43:38 +0000 Delivered-To: bugs@devuan.org Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612] by doc.devuan.org with IMAP (fetchmail-6.4.16) for (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 ) for ; 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; envelope-from=mark@hindley.org.uk; receiver= 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 <749@bugs.devuan.org>; 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 ) 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 To: Olaf Meeuwissen , 749@bugs.devuan.org Cc: Lorenzo Puliti Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874jqv5t46.fsf@basecamp> 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 > > 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