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 #5 received at submit@bugs.devuan.org (full text, mbox, reply):

Received: (at submit) by bugs.devuan.org; 13 Nov 2022 18:07:31 +0000
Return-Path: <wolfgang@leila.ping.de>
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:07:31 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id f49mCWAycWMWGQAAmSBk0A
	(envelope-from <wolfgang@leila.ping.de>)
	for <bugs@devuan.org>; Sun, 13 Nov 2022 18:07:28 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 1B3033972; Sun, 13 Nov 2022 18:07:28 +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=RCVD_IN_DNSWL_NONE,SPF_PASS
	autolearn=ham autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=83.97.42.2; helo=lilly.ping.de; envelope-from=wolfgang@leila.ping.de; receiver=<UNKNOWN> 
Received: from lilly.ping.de (lilly.ping.de [83.97.42.2])
	by email.devuan.org (Postfix) with ESMTPS id C5BDD4B
	for <submit@bugs.devuan.org>; Sun, 13 Nov 2022 18:07:22 +0000 (UTC)
Received: (qmail 22349 invoked by uid 10); 12 Nov 2022 20:20:34 -0000
Received: from leila.ping.de by lilly.ping.de with UUCP (rmail-0.2-fdc); 12 Nov 2022 20:20:34 -0000
Received: by leila (Postfix, from userid 11341)
	id 0A2417EC4; Sat, 12 Nov 2022 21:20:17 +0100 (CET)
Date: Sat, 12 Nov 2022 21:20:17 +0100
To: submit@bugs.devuan.org
Subject: init-system-helpers: update-rc.d calls systemctl on a SysVinit system, creating a recursion
Message-ID: <20221112202017.GC7301@leila.ping.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.13 (2006-08-11)
From: wolfgang@leila.ping.de (Wolfgang Wegner)
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.

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.

-- System Information:
Distributor ID: Devuan
Description:    Devuan GNU/Linux 5 (daedalus/ceres)
Release:        5
Codename:       daedalus ceres
Architecture: x86_64

Kernel: Linux 5.19.9-wolfgang-wolfgang (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages init-system-helpers is related to:
ii  insserv  1.24.0-1

-- no debconf information

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: Mon Nov 25 01:57:05 2024;