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

Package: systemctl-service-shim; Reported by: [email protected] (Wolfgang Wegner); Keywords: moreinfo; Done: [email protected]; Maintainer for systemctl-service-shim is B. Stack <[email protected]>.

Message received at [email protected]:


Received: (at 723-done) by bugs.devuan.org; 2 May 2024 03:39:08 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2a01:4f9:fff1:13::5fd9:f9e4]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Thu, 02 May 2024 03:39:08 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id OHTDCI8KM2bNSQAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Thu, 02 May 2024 03:37:51 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 114C466F; Thu,  2 May 2024 03:37:50 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=devuan.org;
	s=default; t=1714621071;
	bh=LxH18OZDp8WIuaQR509zlJYGjAZzbY9Fquy1O+P2f7A=;
	h=From:To:Subject:Date:From;
	b=iMLqvp77uk4q7DRdJ+MP7Re/Xz8NtAeYCZJ2ROD//36Wy9N3Ou4SI1+MqL5+1tOLe
	 niVykj+TNn441vdOqOFPJIl7Z7p1ac03d5IRTQFTPsmjMlaZP1zyZAU4CAie8BWqIU
	 BgfCTdo4ho1D9j9uatQUSpISkzlI7G/hsIesxSbfvcuL5/IhCQ8YKah1TN6i5JUVRS
	 rH2i86yFS0k473VhhROiudJ+R1hvLIPeuv7aQ/wWMZct6ylHp4MYk266UeNOA9vCCJ
	 YEbM0tCYKaxE75dHUl7pzK3LiFilXYUHVD+kpn5kg6wZSV3DSzVbkPT1VJZJh/H6kc
	 VC6B4gaSFysXw==
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no
	version=3.4.6
Received: from mail.devuan.dev (bonito.devuan.org [85.10.193.185])
	by email.devuan.org (Postfix) with ESMTP id 5E9D33F8
	for <[email protected]>; Thu,  2 May 2024 03:37:46 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=devuan.org;
	s=default; t=1714621066;
	bh=LxH18OZDp8WIuaQR509zlJYGjAZzbY9Fquy1O+P2f7A=;
	h=From:To:Subject:Date:From;
	b=S55EuyR9U2X0ElOJ8f2kidAePJJfwI2w0yaNIGy78Rpljp3AcH/JkxfnY1/5RmJCi
	 ouWgSh+4Ql1fXDRg2wC3Dfkw/PFeu7hVzqOD5sQ6R/FP3oIpzfB6PpZ/YFi2hpArZR
	 IK+XuQTk2F/u5/zrw1aXomwc/gUfeFusFElzQpyp4qRLU4U5Xg2+0a0Ndkn9FOddVT
	 52rdIMelRQDe7AUu2roIr+4Mx5sOhhdzW5CCmlNfXw97205BH8wG5LhL6S8LNhu1jm
	 sXpgAT4tuAelmlNdQ6czw+z4k37mitJ3dMv7B7bFLoLuwENGpjZIQto1y9NMORr4k+
	 bvsNeKRN/XJFQ==
Received: from dak.localnet.devuan.org (dak.localnet.devuan.org [192.168.97.90])
	by mail.devuan.dev (Postfix) with SMTP id E10F6420BA3
	for <[email protected]>; Thu,  2 May 2024 03:37:45 +0000 (UTC)
Received: (nullmailer pid 7166 invoked by uid 107);
	Thu, 02 May 2024 03:37:45 -0000
From: [email protected]
To: [email protected]
Subject: #723: fixed in src:systemctl-service-shim version 0.0.7
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Date: Thu, 02 May 2024 03:37:45 +0000
Message-Id: <[email protected]>


Version: 0.0.7

Source package systemctl-service-shim (0.0.7) added to Devuan suite unstable.

This closes bug report 723.

Thanks

DAK managing the Devuan archive

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 01 May 2024 22:28:41 -0500
Source: systemctl-service-shim
Architecture: source
Version: 0.0.7
Distribution: unstable
Urgency: medium
Maintainer: B. Stack <[email protected]>
Changed-By: Plasma (David Paul) <[email protected]>
Closes: 723
Changes:
 systemctl-service-shim (0.0.7) unstable; urgency=medium
 .
   [ B. Stack ]
   * Relicense to LGPLv2.1
 .
   [ Plasma (David Paul) ]
   * Fix endless loop when calling update-rc.d
     (Closes: #723)
   * Re-remove symlink control logic
   * Bump Standards-Version to 4.7.0 ; no change
Checksums-Sha1:
 deeb6e60e63e5d3c4cbefd06f69adb03f7b07a32 1442 systemctl-service-shim_0.0.7.dsc
 0dcf4dd60ed6b792b7e3cead2c0e2a580d03f30e 16668 systemctl-service-shim_0.0.7.tar.xz
 b3741f94b76eebd1fdc59d982b3e9c5584748106 5415 systemctl-service-shim_0.0.7_source.buildinfo
Checksums-Sha256:
 4266060345da2066345563f45ce01bdf948aa3dd670b11a3a0ad79bb3538bded 1442 systemctl-service-shim_0.0.7.dsc
 a6315a6c78328dd04de9cba8811a3e096af75bf8f9f5126ecebca81c33dcad86 16668 systemctl-service-shim_0.0.7.tar.xz
 62cad4297628802631d6c75cdb090f96f0aa7e781482edb775556362a7fe90b9 5415 systemctl-service-shim_0.0.7_source.buildinfo
Files:
 0d74430a858983dc9f551b01b5883daf 1442 admin optional systemctl-service-shim_0.0.7.dsc
 a266dcbf180d63c09bc2e7812bb56154 16668 admin optional systemctl-service-shim_0.0.7.tar.xz
 dad6ca6d32380a5dcc1cb1166e386c5c 5415 admin optional systemctl-service-shim_0.0.7_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEcuPLdzMV36LkZHQ9lFMhJFQZIvsFAmYzCnIACgkQlFMhJFQZ
IvtSAgf+IQ3EkvDt/w5fVn1CYt9cLWAoGyMe0LWPVNpvYiMCPFYCwQzabBh6wlTW
xoRZ9fdhM/5A1tKEbTy7ODIVgjmtkffajayZNthkMhNqyTIE2sHx+3/ZJmeSuAjl
1O8cTGeKCB5SFhwjGjMaxP+gvMYIq991GNpTu82MhoaNxwVTlriJCRcQl63wQzTf
A1BHsu1pWclLEyfmJIHGvF54qMR8CnrIm6oXjyi2HeMhkjsG9ZRW+l96hlnqlTN7
m7DzS64pukyUB9NJsdgch+OkoMQfIVRiGs10YtVE2Bhau6aKzWlGpU7iludSqhdj
JgkKb2ZkKKm1IdI3x5oJb/Q5RC6SHg==
=1TK/
-----END PGP SIGNATURE-----

Notification sent to [email protected] (Wolfgang Wegner):
bug acknowledged by developer. Full text available.
Reply sent to [email protected]:
You have taken responsibility. Full text available.
No longer marked as found in versions 1.65.2devuan1. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.
bug reassigned from package 'init-system-helpers' to 'systemctl-service-shim'. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at 723) by bugs.devuan.org; 14 Nov 2022 16:36:04 +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); Mon, 14 Nov 2022 16:36:04 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id C4zXIDZucmPpdgAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Mon, 14 Nov 2022 16:35:02 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 64A92396A; Mon, 14 Nov 2022 16:35:02 +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 64E1F4B;
	Mon, 14 Nov 2022 16:34:57 +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 1oucQB-00058B-Ug; Mon, 14 Nov 2022 16:34:56 +0000
Received: (nullmailer pid 6713 invoked by uid 1000);
	Mon, 14 Nov 2022 16:34:55 -0000
Date: Mon, 14 Nov 2022 16:34:55 +0000
From: Mark Hindley <[email protected]>
To: B Stack <[email protected]>
Cc: [email protected], [email protected]
Subject: Re: bug#723: init-system-helpers: update-rc.d calls systemctl on a
 SysVinit system, creating a recursion
Message-ID: <[email protected]>
References: <[email protected]>
 <[email protected]>
 <[email protected]>
 <[email protected]>
 <CABSMGanMGWc5h++XJ+s2+LQZuF2puYxPS4WLHtYsi5D2ZECUVw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CABSMGanMGWc5h++XJ+s2+LQZuF2puYxPS4WLHtYsi5D2ZECUVw@mail.gmail.com>

Control: reassign -1 systemctl-service-shim

Ben,

Thanks

Reassigning.

Mark

Acknowledgement sent to Mark Hindley <[email protected]>:
Extra info received and forwarded to list. Copy sent to Devuan Dev Team <[email protected]>. Full text available.
Information forwarded to [email protected], Devuan Dev Team <[email protected]>:
bug#723; Package init-system-helpers. Full text available.

Message received at [email protected]:


Received: (at 723) by bugs.devuan.org; 14 Nov 2022 12:51:08 +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); Mon, 14 Nov 2022 12:51:08 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id mk6MHKQ5cmM1awAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Mon, 14 Nov 2022 12:50:44 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 61ED73972; Mon, 14 Nov 2022 12:50:44 +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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham
	autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::d2e; helo=mail-io1-xd2e.google.com; [email protected]; receiver=<UNKNOWN> 
Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e])
	by email.devuan.org (Postfix) with ESMTPS id D313CDB5;
	Mon, 14 Nov 2022 12:50:40 +0000 (UTC)
Received: by mail-io1-xd2e.google.com with SMTP id 11so8064505iou.0;
        Mon, 14 Nov 2022 04:50:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20210112;
        h=cc:to:subject:message-id:date:from:in-reply-to:references
         :mime-version:from:to:cc:subject:date:message-id:reply-to;
        bh=Jw3T2lQlsbhZQExmWb/TPq+f1IVPq01wjsgcSYp+TEQ=;
        b=ZjCOz5+nQV6wOCALBSfZNjwQ/B2e9knDyh8dxp/Ycf8rJ+62eNmGCa7Up4118opPc9
         wiUChCRjDJvHPliIJ4c7DLnapLuMbviNNCaty8M56ttP5m5M3bMGep9jutt1LIWIxfeB
         58ihaouAxSyRRxnCNGowLT+Ifmhq9pjvWMNQCVAvVozhMVvNT6ihnukPRq9AoUJeUAht
         0oLnplV9dLiis0MQP2yHqrZgtTjVPPQOiUg9BI9UH72Ye3f6bo0N0rwWC7pY6cXoicAS
         km/SVcOAIOyUrI1rfyE137m+fKn3N/GleDFEXhtXZD/nbN0GqqZcz3xEyN30EApruTxY
         ahrQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112;
        h=cc:to:subject:message-id:date:from:in-reply-to:references
         :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
         :reply-to;
        bh=Jw3T2lQlsbhZQExmWb/TPq+f1IVPq01wjsgcSYp+TEQ=;
        b=P6rZdIzNDuTdTc4RjRwgg3ZfZ1LkgP8Z1heZTEods3CImZc5ACM/umUyReK7EP70P2
         sNMAQoNrxp3HsQpasjiNxEin4UD1duB4RgP/B99D9uSm3wG/OMlTsISRu8STVKKrnlyx
         EXGpedVFgvkMJNRl1uY6ugbQu3j8MpG29QYD9ISGCzQKfvxq0D+gjbYrIUfVH0F2mknE
         Xbg1Pb1ILxIuLPRFyKmz0/kAjkyaQblgQs1MHqTX65fUBXv6jFTM6gbXICkayZHUsJ/0
         tkCMSkzZcCc/Y2tFuzXA3wKYwyF0rjTsWPZnCKwVqybzYI0IoeFc2bfyAwM0DleSkjtD
         4ZOg==
X-Gm-Message-State: ANoB5pkPHtqoAZPkZAOdlCPSg286Fy/qpR44IMvCJFdGiHa+C5Z4D8Yj
	/Y9RpjBFOLFExe7jzC8HlpxXVmfU9eqJC81XgLw=
X-Google-Smtp-Source: AA0mqf7eRh7CsC/pM5uTb3gdiJtjLwokEgnKeJsbbm+uRD5l3SchDQ+DjaMkZDBzRS+tJl1m19Tehk5l7zrzUqkcw6I=
X-Received: by 2002:a05:6638:d7:b0:375:4725:4b4f with SMTP id
 w23-20020a05663800d700b0037547254b4fmr5503878jao.52.1668430238209; Mon, 14
 Nov 2022 04:50:38 -0800 (PST)
MIME-Version: 1.0
References: <[email protected]> <[email protected]>
 <[email protected]> <[email protected]>
In-Reply-To: <[email protected]>
From: B Stack <[email protected]>
Date: Mon, 14 Nov 2022 07:50:26 -0500
Message-ID: <CABSMGanMGWc5h++XJ+s2+LQZuF2puYxPS4WLHtYsi5D2ZECUVw@mail.gmail.com>
Subject: Re: bug#723: init-system-helpers: update-rc.d calls systemctl on a
 SysVinit system, creating a recursion
To: Mark Hindley <[email protected]>
Cc: [email protected], [email protected]
Content-Type: text/plain; charset="UTF-8"

Hi,

The systemctl-service-shim main script /usr/bin/systemctl also has a
symlink at /bin/systemctl. If the script is called from /bin/systemctl
then it will remove this symlink during operations to avoid the
recursive calls like you see happening here. You can check the
relevant logs at /var/log/systemctl.log, and please share them here.

The systemctl service shim script has a known problem particularly on
the "enable" action [0] that I thought was fixed. The logs, if you can
share them, might help make an improvement such as the script getting
called in a particular way where it also needs to remove the symlink
to prevent infinite recursion.

B. Stack
[0]: https://bugs.devuan.org/cgi/bugreport.cgi?bug=688

On Mon, Nov 14, 2022 at 5:53 AM Mark Hindley <[email protected]> wrote:
>
> Antony,
>
> On Mon, Nov 14, 2022 at 11:31:39AM +0100, Where all about bugs in Devuan packages is reported wrote:
> > > Hmmm, I get completely different behaviour with that command:-
> > >
> > > mark@apollo:~% sudo update-rc.d enable rsyslog
> > > usage: update-rc.d [-f] <basename> remove
> > >        update-rc.d [-f] <basename> defaults
> > >        update-rc.d [-f] <basename> defaults-disabled
> > >        update-rc.d <basename> disable|enable [S|2|3|4|5]
> > >                 -f: force
> >
> > Um, "update-rc.d rsyslog enable" != "update-rc.d enable rsyslog".
>
> Thanks for pointing out my obvious (but not to me!) mistake.
>
> So I can now reproduce this, but only if systemctl-service-shim is installed. If
> it is removed, update-rc.d behaves as expected.
>
> [Adding bgstack15]
>
> Is this an issue in the way systemctl-service-shim behaves? I don't see it with
> systemctl on a Debian sysvinit system.
>
> Thanks.
>
> Mark

Acknowledgement sent to B Stack <[email protected]>:
Extra info received and forwarded to list. Copy sent to Devuan Dev Team <[email protected]>. Full text available.
Information forwarded to [email protected], Devuan Dev Team <[email protected]>:
bug#723; Package init-system-helpers. Full text available.

Message received at [email protected]:


Received: (at 723) by bugs.devuan.org; 14 Nov 2022 10:54:06 +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); Mon, 14 Nov 2022 10:54:06 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id wwxpFCYecmOlZwAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Mon, 14 Nov 2022 10:53:26 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 4AB7A396A; Mon, 14 Nov 2022 10:53:26 +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 09A854B;
	Mon, 14 Nov 2022 10:53:25 +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 1ouX5g-0003OB-C8; Mon, 14 Nov 2022 10:53:24 +0000
Received: (nullmailer pid 32120 invoked by uid 1000);
	Mon, 14 Nov 2022 10:53:24 -0000
Date: Mon, 14 Nov 2022 10:53:24 +0000
From: Mark Hindley <[email protected]>
To: [email protected], [email protected], [email protected]
Subject: Re: bug#723: init-system-helpers: update-rc.d calls systemctl on a
 SysVinit system, creating a recursion
Message-ID: <[email protected]>
References: <[email protected]>
 <[email protected]>
 <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>

Antony,

On Mon, Nov 14, 2022 at 11:31:39AM +0100, Where all about bugs in Devuan packages is reported wrote:
> > Hmmm, I get completely different behaviour with that command:-
> > 
> > mark@apollo:~% sudo update-rc.d enable rsyslog
> > usage: update-rc.d [-f] <basename> remove
> >        update-rc.d [-f] <basename> defaults
> >        update-rc.d [-f] <basename> defaults-disabled
> >        update-rc.d <basename> disable|enable [S|2|3|4|5]
> >                 -f: force
> 
> Um, "update-rc.d rsyslog enable" != "update-rc.d enable rsyslog".

Thanks for pointing out my obvious (but not to me!) mistake.

So I can now reproduce this, but only if systemctl-service-shim is installed. If
it is removed, update-rc.d behaves as expected.

[Adding bgstack15]

Is this an issue in the way systemctl-service-shim behaves? I don't see it with
systemctl on a Debian sysvinit system.

Thanks.

Mark

Acknowledgement sent to Mark Hindley <[email protected]>:
Extra info received and forwarded to list. Copy sent to Devuan Dev Team <[email protected]>. Full text available.
Information forwarded to [email protected], Devuan Dev Team <[email protected]>:
bug#723; Package init-system-helpers. Full text available.

Message received at [email protected]:


Received: (at 723) by bugs.devuan.org; 14 Nov 2022 10:52:36 +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); Mon, 14 Nov 2022 10:52:36 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id xR/UB8YdcmOSZwAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Mon, 14 Nov 2022 10:51:50 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 12CC0396A; Mon, 14 Nov 2022 10:51:50 +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; [email protected]; receiver=<UNKNOWN> 
Received: from lilly.ping.de (lilly.ping.de [83.97.42.2])
	by email.devuan.org (Postfix) with ESMTPS id D728E4B
	for <[email protected]>; Mon, 14 Nov 2022 10:51:44 +0000 (UTC)
Received: (qmail 21370 invoked by uid 10); 14 Nov 2022 10:51:31 -0000
Received: from leila.ping.de by lilly.ping.de with UUCP (rmail-0.2-fdc); 14 Nov 2022 10:51:31 -0000
Received: by leila (Postfix, from userid 11341)
	id B2A297EC3; Mon, 14 Nov 2022 11:51:17 +0100 (CET)
Date: Mon, 14 Nov 2022 11:51:17 +0100
To: Mark Hindley <[email protected]>
Cc: [email protected]
Subject: Re: bug#723: init-system-helpers: update-rc.d calls systemctl on a SysVinit system, creating a recursion
Message-ID: <[email protected]>
References: <[email protected]> <Y3E5pEc/[email protected]> <[email protected]> <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
User-Agent: Mutt/1.5.13 (2006-08-11)
From: [email protected] (Wolfgang Wegner)

On Mon, Nov 14, 2022 at 10:24:39AM +0000, Mark Hindley wrote:
[...]
> I notice you have dummy-systemd-dev installed. You really don't want that on a
> production system. If is a hack for building sources that Build-Dep: systemd. It
> doesn't provide any systemd functionality.
> 
> If you remove it does it make any difference?

Thanks - I removed it now, but that does not make any difference.

> > > > 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.
> > 
> > root@<host>:~# update-rc.d rsyslog enable
> > update-rc.d rsyslog enable
> > update-rc.d rsyslog enable
> > update-rc.d rsyslog enable
> 
> Hmmm, I get completely different behaviour with that command:-
> 
> mark@apollo:~% sudo update-rc.d enable rsyslog

Is the switched basename/command pair intended here?

> usage: update-rc.d [-f] <basename> remove
>        update-rc.d [-f] <basename> defaults
>        update-rc.d [-f] <basename> defaults-disabled
>        update-rc.d <basename> disable|enable [S|2|3|4|5]
>                 -f: force
> 
> The disable|enable API is not stable and might change in the future.
> 
> What systemd-requiring package are you trying to install? What other changes
> have you made?

The package I try to install is *cough* "cybereason-sensor", which is now
required to install from our IT department. Their post-install script
relies on either upstart or systemd being present. As in consequence, no
LSB init script is provided with the package, I created a basic one and
also added the standard links in /etc/rc?.d/.

I am not aware of other changes I did to the system - however, the
installation is originating from a Devuan 1.0 install and has only been
updated to the current state, which has been quite cumbersome with respect
to some in-between incompatibilities, especially the usual NVIDIA mess
but also some things concerning qemu/KVM and wine.
(This is to say: I do not remember any changes in the area of the init
system but there has been some fiddling around trying to get some updates
installed.)

As another test, I just tried to remove systemctl-service-shim, and
immediately the weird behaviour of update-rc.d is gone:

root@<host>:~# dpkg -r systemctl-service-shim
(Reading database ... 836967 files and directories currently installed.)
Removing systemctl-service-shim (0.0.4-1) ...
Processing triggers for man-db (2.11.0-1+b1) ...
root@<host>:~# update-rc.d rsyslog enable
root@<host>:~#

So to me it really looks like an unwanted interaction just between
update-rc.d and systemctl-service-shim.

> Mark

Best regards
Wolfgang

Acknowledgement sent to [email protected] (Wolfgang Wegner):
Extra info received and forwarded to list. Copy sent to Devuan Dev Team <[email protected]>. Full text available.
Information forwarded to [email protected], Devuan Dev Team <[email protected]>:
bug#723; Package init-system-helpers. Full text available.

Message received at [email protected]:


Received: (at 723) by bugs.devuan.org; 14 Nov 2022 10:25:34 +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); Mon, 14 Nov 2022 10:25:34 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id sbsDDW8XcmMdZgAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Mon, 14 Nov 2022 10:24:47 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 1E19D396A; Mon, 14 Nov 2022 10:24:47 +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 1C7CE4B
	for <[email protected]>; Mon, 14 Nov 2022 10:24:41 +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 1ouWds-0003Cm-1G; Mon, 14 Nov 2022 10:24:40 +0000
Received: (nullmailer pid 29795 invoked by uid 1000);
	Mon, 14 Nov 2022 10:24:39 -0000
Date: Mon, 14 Nov 2022 10:24:39 +0000
From: Mark Hindley <[email protected]>
To: Wolfgang Wegner <[email protected]>
Cc: [email protected]
Subject: Re: bug#723: init-system-helpers: update-rc.d calls systemctl on a
 SysVinit system, creating a recursion
Message-ID: <[email protected]>
References: <[email protected]>
 <Y3E5pEc/[email protected]>
 <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>

Wolfgang,

On Sun, Nov 13, 2022 at 10:00:05PM +0100, Wolfgang Wegner wrote:
> > > 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?
> 
> Sorry I am not sure what exactly you mean here. I try to list packages that
> might be relevant:
> 
> ii  init-system-helpers          1.65.2devuan1 all          helper tools for all init systems
> ii  initscripts                  3.05-6devuan1 all          scripts for initializing and shutting down the system
> ii  orphan-sysvinit-scripts      0.11          all          Orphaned System-V-like init scripts
> ii  sysvinit                     3.05-6devuan1 amd64        System-V-like init utilities - transitional package
> ii  sysvinit-core                3.05-6devuan1 amd64        System-V-like init
> ii  sysvinit-utils               3.05-6devuan1 amd64        System-V-like utilities
> ii  systemctl-service-shim 0.0.4-1      all          Adds systemctl translator script
> ii  dummy-systemd-dev   0.2          all          Development files extracted from systemd
> 
> "systemctl-service-shim" might be what you are asking for, but I did not see
> any alternative?

Yes, that what what I meant. There is also a Debian systemctl package, but it is
not really maintained and I wouldn't recommend it.

I notice you have dummy-systemd-dev installed. You really don't want that on a
production system. If is a hack for building sources that Build-Dep: systemd. It
doesn't provide any systemd functionality.

If you remove it does it make any difference?

> > > 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.
> 
> root@<host>:~# update-rc.d rsyslog enable
> update-rc.d rsyslog enable
> update-rc.d rsyslog enable
> update-rc.d rsyslog enable

Hmmm, I get completely different behaviour with that command:-

mark@apollo:~% sudo update-rc.d enable rsyslog
usage: update-rc.d [-f] <basename> remove
       update-rc.d [-f] <basename> defaults
       update-rc.d [-f] <basename> defaults-disabled
       update-rc.d <basename> disable|enable [S|2|3|4|5]
                -f: force

The disable|enable API is not stable and might change in the future.

What systemd-requiring package are you trying to install? What other changes
have you made?

Mark

Acknowledgement sent to Mark Hindley <[email protected]>:
Extra info received and forwarded to list. Copy sent to Devuan Dev Team <[email protected]>. Full text available.
Information forwarded to [email protected], Devuan Dev Team <[email protected]>:
bug#723; Package init-system-helpers. Full text available.

Message received at [email protected]:


Received: (at 723) by bugs.devuan.org; 13 Nov 2022 21:03:02 +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); Sun, 13 Nov 2022 21:03:02 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id XR77OWtbcWOVIwAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Sun, 13 Nov 2022 21:02:35 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id DABAEDB5; Sun, 13 Nov 2022 21:02: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.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; [email protected]; receiver=<UNKNOWN> 
Received: from lilly.ping.de (lilly.ping.de [83.97.42.2])
	by email.devuan.org (Postfix) with ESMTPS id AF2FFA0
	for <[email protected]>; Sun, 13 Nov 2022 21:02:30 +0000 (UTC)
Received: (qmail 3942 invoked by uid 10); 13 Nov 2022 21:02:14 -0000
Received: from leila.ping.de by lilly.ping.de with UUCP (rmail-0.2-fdc); 13 Nov 2022 21:02:14 -0000
Received: by leila (Postfix, from userid 11341)
	id 719EC7EC3; Sun, 13 Nov 2022 22:00:05 +0100 (CET)
Date: Sun, 13 Nov 2022 22:00:05 +0100
To: Mark Hindley <[email protected]>
Cc: [email protected]
Subject: Re: bug#723: init-system-helpers: update-rc.d calls systemctl on a SysVinit system, creating a recursion
Message-ID: <[email protected]>
References: <[email protected]> <Y3E5pEc/[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Y3E5pEc/[email protected]>
User-Agent: Mutt/1.5.13 (2006-08-11)
From: [email protected] (Wolfgang Wegner)

Hi Mark,

thanks for looking into this!

On Sun, Nov 13, 2022 at 06:38:28PM +0000, Mark Hindley wrote:
> 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: [email protected]
> > 
> > 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?

Sorry I am not sure what exactly you mean here. I try to list packages that
might be relevant:

ii  init-system-helpers          1.65.2devuan1 all          helper tools for all init systems
ii  initscripts                  3.05-6devuan1 all          scripts for initializing and shutting down the system
ii  orphan-sysvinit-scripts      0.11          all          Orphaned System-V-like init scripts
ii  sysvinit                     3.05-6devuan1 amd64        System-V-like init utilities - transitional package
ii  sysvinit-core                3.05-6devuan1 amd64        System-V-like init
ii  sysvinit-utils               3.05-6devuan1 amd64        System-V-like utilities
ii  systemctl-service-shim 0.0.4-1      all          Adds systemctl translator script
ii  dummy-systemd-dev   0.2          all          Development files extracted from systemd

"systemctl-service-shim" might be what you are asking for, but I did not see
any alternative?

> > 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.

root@<host>:~# update-rc.d rsyslog enable
update-rc.d rsyslog enable
update-rc.d rsyslog enable
update-rc.d rsyslog enable
...

> Thanks
> 
> Mark

Best regards
Wolfgang

Acknowledgement sent to [email protected] (Wolfgang Wegner):
Extra info received and forwarded to list. Copy sent to Devuan Dev Team <[email protected]>. Full text available.
Information forwarded to [email protected], Devuan Dev Team <[email protected]>:
bug#723; Package init-system-helpers. Full text available.
Added tag(s) moreinfo. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at 723) by bugs.devuan.org; 13 Nov 2022 18:39:04 +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); Sun, 13 Nov 2022 18:39:04 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id E3eFL6s5cWMZHAAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; 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; [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 B66734B
	for <[email protected]>; 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 <[email protected]>)
	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 <[email protected]>
To: Wolfgang Wegner <[email protected]>, [email protected]
Subject: Re: bug#723: init-system-helpers: update-rc.d calls systemctl on a
 SysVinit system, creating a recursion
Message-ID: <Y3E5pEc/[email protected]>
References: <[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 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: [email protected]
> 
> 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

Information forwarded to [email protected], Devuan Dev Team <[email protected]>:
bug#723; Package init-system-helpers. Full text available.

Message received at [email protected]:


Received: (at submit) by bugs.devuan.org; 13 Nov 2022 18:07:31 +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); Sun, 13 Nov 2022 18:07:31 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id f49mCWAycWMWGQAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; 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; [email protected]; receiver=<UNKNOWN> 
Received: from lilly.ping.de (lilly.ping.de [83.97.42.2])
	by email.devuan.org (Postfix) with ESMTPS id C5BDD4B
	for <[email protected]>; 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: [email protected]
Subject: init-system-helpers: update-rc.d calls systemctl on a SysVinit system, creating a recursion
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.13 (2006-08-11)
From: [email protected] (Wolfgang Wegner)

Package: init-system-helpers
Version: 1.65.2devuan1
Severity: normal
X-Debbugs-Cc: [email protected]

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

Acknowledgement sent to [email protected] (Wolfgang Wegner):
New bug report received and forwarded. Copy sent to [email protected], Devuan Dev Team <[email protected]>. Full text available.
Report forwarded to [email protected], [email protected], Devuan Dev Team <[email protected]>:
bug#723; Package init-system-helpers. 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: Sat, 30 Nov 2024 22:39:01 UTC