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


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#723: init-system-helpers: update-rc.d calls systemctl on a SysVinit system, creating a recursion
Reply-To: B Stack <bgstack15@gmail.com>, 723@bugs.devuan.org
Resent-From: B Stack <bgstack15@gmail.com>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: Devuan Dev Team <devuan-dev@lists.dyne.org>
X-Loop: owner@bugs.devuan.org
Resent-Date: Mon, 14 Nov 2022 12:52:01 +0000
Resent-Message-ID: <handler.723.B723.16684302689060@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: followup 723
X-Devuan-PR-Package: init-system-helpers
X-Devuan-PR-Keywords: moreinfo
References: <20221112202017.GC7301@leila.ping.de> <mailman.325.1668421564.4883.devuan-bugs@lists.dyne.org> <mailman.326.1668421916.4883.devuan-bugs@lists.dyne.org> <Y3IeJHl8+MEmIovl@hindley.org.uk> <20221112202017.GC7301@leila.ping.de>
Received: via spool by 723-submit@bugs.devuan.org id=B723.16684302689060
          (code B ref 723); Mon, 14 Nov 2022 12:52:01 +0000
Received: (at 723) by bugs.devuan.org; 14 Nov 2022 12:51:08 +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 <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 <bgstack15@gmail.com>)
	for <bugs@devuan.org>; 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; envelope-from=bgstack15@gmail.com; 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
In-Reply-To: <Y3IeJHl8+MEmIovl@hindley.org.uk>
From: B Stack <bgstack15@gmail.com>
Date: Mon, 14 Nov 2022 07:50:26 -0500
Message-ID: <CABSMGanMGWc5h++XJ+s2+LQZuF2puYxPS4WLHtYsi5D2ZECUVw@mail.gmail.com>
To: Mark Hindley <mark@hindley.org.uk>
Cc: 723@bugs.devuan.org, 732-sumbitter@bugs.devuan.org
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 <mark@hindley.org.uk> 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

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 11:22:53 2024;