Devuan bug report logs - #723
init-system-helpers: update-rc.d calls systemctl on a SysVinit system, creating a recursion

version graph

Package: systemctl-service-shim; Maintainer for systemctl-service-shim is B. Stack <bgstack15@gmail.com>; Source for systemctl-service-shim is src:systemctl-service-shim.

Reported by: wolfgang@leila.ping.de (Wolfgang Wegner)

Date: Sun, 13 Nov 2022 18:08:01 UTC

Severity: normal

Tags: moreinfo

Fixed in version 0.0.7

Done: dak@devuan.org

Full log


Message #10 received at 723@bugs.devuan.org (full text, mbox, reply):

Received: (at 723) by bugs.devuan.org; 13 Nov 2022 18:39:04 +0000
Return-Path: <mark@hindley.org.uk>
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 <debbugs@localhost> (single-drop); Sun, 13 Nov 2022 18:39:04 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id E3eFL6s5cWMZHAAAmSBk0A
	(envelope-from <mark@hindley.org.uk>)
	for <bugs@devuan.org>; Sun, 13 Nov 2022 18:38:35 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id B5CD83972; Sun, 13 Nov 2022 18:38:35 +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=<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 B66734B
	for <723@bugs.devuan.org>; Sun, 13 Nov 2022 18:38:30 +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 <mark@hindley.org.uk>)
	id 1ouHsC-0006uV-Jt; Sun, 13 Nov 2022 18:38:28 +0000
Received: (nullmailer pid 5100 invoked by uid 1000);
	Sun, 13 Nov 2022 18:38:28 -0000
Date: Sun, 13 Nov 2022 18:38:28 +0000
From: Mark Hindley <mark@hindley.org.uk>
To: Wolfgang Wegner <wolfgang@leila.ping.de>, 723@bugs.devuan.org
Subject: Re: bug#723: init-system-helpers: update-rc.d calls systemctl on a
 SysVinit system, creating a recursion
Message-ID: <Y3E5pEc/vLJZHT5r@hindley.org.uk>
References: <20221112202017.GC7301@leila.ping.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20221112202017.GC7301@leila.ping.de>
X-Debbugs-No-Ack: No Thanks
Control: tags -1 moreinfo

Wolfgang,

Thanks for this.

On Sat, Nov 12, 2022 at 09:20:17PM +0100, Wolfgang Wegner wrote:
> Package: init-system-helpers
> Version: 1.65.2devuan1
> Severity: normal
> X-Debbugs-Cc: wolfgang@leila.ping.de
> 
> Dear Maintainer,
> 
> I am trying to install a package which expects SystemD. I manually added
> scripts and an initial set for sysVinit. However, the post-install script
> calls "systemctl --no-reload enable <packagename>", which invokes
> update-rc.d, which in turn diverts to a systemctl call, and so on.

Which of the available systemctl emulations do you have installed?

> Calling update-rc.d from the systemctl "abstraction" (surrogate?) seems
> to be correct, but I would have expected update-rc.d to detect the system's
> init system and - as I am using sysVinit on Devuan - just modify the links.
> 
> update-rc.d behaviour can also be reproduced when calling it for an already
> installed service.

Could you give a specific example here. I can't reproduce it.

Thanks

Mark

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat May 4 13:58:11 2024;