Devuan bug report logs - #688
systemctl infinite loop, missing /bin/systemctl symlink

Package: systemctl-service-shim; Severity: grave; Reported by: Jernej Jakob <[email protected]>; Keywords: stable; Done: [email protected]; Maintainer for systemctl-service-shim is B. Stack <[email protected]>.

Message received at [email protected]:


Received: (at 688-done) by bugs.devuan.org; 12 Jul 2022 17:12:04 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from mail.dyne.org [141.95.83.167]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Tue, 12 Jul 2022 17:12:04 +0000 (UTC)
Received: from mail.devuan.dev (mail.devuan.dev [54.36.142.182])
	by mail.dyne.org (Postfix) with ESMTP id B0A3B661345
	for <[email protected]>; Tue, 12 Jul 2022 19:10:42 +0200 (CEST)
Received: from dak.localnet.devuan.org (dak.localnet.devuan.org [192.168.97.90])
	by mail.devuan.dev (Postfix) with SMTP id CD5D9407782
	for <[email protected]>; Tue, 12 Jul 2022 15:53:37 +0000 (UTC)
Received: (nullmailer pid 16632 invoked by uid 107);
	Tue, 12 Jul 2022 15:53:37 -0000
From: [email protected]
To: [email protected]
Subject: #688: fixed in src:systemctl-service-shim version 0.0.3-1
MIME-Version: 1.0
Content-Type: text/plain; charset="ANSI_X3.4-1968"
Content-Transfer-Encoding: 8bit
Date: Tue, 12 Jul 2022 15:53:37 +0000
Message-Id: <[email protected]>
X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_FAIL,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dyne.org


Version: 0.0.3-1

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

This closes bug report 688.

Thanks

DAK managing the Devuan archive

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

Format: 1.8
Date: Tue, 12 Jul 2022 10:52:37 -0400
Source: systemctl-service-shim
Architecture: source
Version: 0.0.3-1
Distribution: unstable
Urgency: low
Maintainer: B. Stack <[email protected]>
Changed-By: B. Stack <[email protected]>
Closes: 688
Changes:
 systemctl-service-shim (0.0.3-1) unstable; urgency=low
 .
   * Add /bin/systemctl symlink directly to package (Closes: #688)
   * Action `try-restart` is simplified to `restart`
Checksums-Sha1:
 fba6db32fbed789965522a618a26840f5c31ef79 1654 systemctl-service-shim_0.0.3-1.dsc
 064b17d5541c6f73a8df313d2dbc0d0830359401 13809 systemctl-service-shim_0.0.3.orig.tar.gz
 d1799e0e4e6c075deb693ff2fdb8d88e0f22c6cf 6640 systemctl-service-shim_0.0.3-1.debian.tar.xz
 d5fbb6a6a10b5df39bf1e70610d65e49c7776de9 5349 systemctl-service-shim_0.0.3-1_source.buildinfo
Checksums-Sha256:
 b6d8eec49cab0ccb0588a7392a2a950ee3db688601dabe8e3d5e15216610b766 1654 systemctl-service-shim_0.0.3-1.dsc
 9f57fb5fe94277ae8d63261ee8783f79716b57589eb2e8eba1f756bfc2e0069c 13809 systemctl-service-shim_0.0.3.orig.tar.gz
 09b1b2004c583431d5fe530e37944ce924a83668327bbd0b71751258c52f5a02 6640 systemctl-service-shim_0.0.3-1.debian.tar.xz
 86f17f6f1c722f86897af8fdece01a79c2fb2995bfcfa8b1617876bb4f1d5a43 5349 systemctl-service-shim_0.0.3-1_source.buildinfo
Files:
 06f1209d1aef8f3836bd3dff061f6063 1654 admin optional systemctl-service-shim_0.0.3-1.dsc
 a78c75bafe3e21ada5bf660d1f94228d 13809 admin optional systemctl-service-shim_0.0.3.orig.tar.gz
 49faa5c7c894bd8838545f35abb82e48 6640 admin optional systemctl-service-shim_0.0.3-1.debian.tar.xz
 ee8a8ddf7b142557c1dcb0536dc57fc0 5349 admin optional systemctl-service-shim_0.0.3-1_source.buildinfo

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

iQEzBAEBCgAdFiEEcuPLdzMV36LkZHQ9lFMhJFQZIvsFAmLNmHgACgkQlFMhJFQZ
IvuGHAf+L4Ifu4x/HZUjtY17W82ZUYnxu+atgBu4T+FuqhI57sxefwC0+iErdvZs
/s5Azybw9bM5xUUQC9NJFMtyCRiUoAdu8mqw0cmFhPbdr5bEy+srH2vtqnR2GmTt
UypfbciRrdBPmXtaPwMtUIxaNUsa+pK/A4Ixutn7kutl7VdA2sG5pWYTH82rrui2
YYErn2+eiF91rzrZYYoQISiAiug2ioAhxWpDJ9pO/VmwkyOY5PN+/oASMrDFK13d
2f9MNEWTo/5ax5iedzmxqND0SRSzdBgvVYrZcENH0bLIjlErSrRypf2tj0ZYraEx
+acLO0G8kqMfjo1QgfYBVB56DEb+8g==
=XrSz
-----END PGP SIGNATURE-----

Notification sent to Jernej Jakob <[email protected]>:
bug acknowledged by developer. Full text available.
Reply sent to [email protected]:
You have taken responsibility. Full text available.

Message received at [email protected]:


Received: (at 688) by bugs.devuan.org; 7 Jul 2022 20:37:43 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from mail.dyne.org [141.95.83.167]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Thu, 07 Jul 2022 20:37:43 +0000 (UTC)
Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by mail.dyne.org (Postfix) with ESMTPS id 4B1926617FC
	for <[email protected]>; Thu,  7 Jul 2022 22:37:14 +0200 (CEST)
Authentication-Results: mail.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com [email protected] header.b="qc2paKJj";
	dkim-atps=neutral
Received: by mail-ej1-f51.google.com with SMTP id l23so2616342ejr.5
        for <[email protected]>; Thu, 07 Jul 2022 13:37:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20210112;
        h=date:from:to:message-id:mime-version:content-transfer-encoding;
        bh=Bh1YP2meeKISmObV2a5kSBFAHpMKCxwYqiKUNeY8/Nk=;
        b=qc2paKJj9UB8cAxPXM1Ar6uBrCGTq19AuXA43Z077+dU7VY7PMDD81Bl3WUaeSI8Yj
         diHscobBRaLGr0/lw6f9Y0RClzM42lkqB0qIlVSBr2yW+uVI6LbgtKqzVW7KcUJ4nmiq
         7f2dxJ127eoAiAlkTMKqjbzxMW3vuSgUT8ao+kayrJFv4KxEXJWTGLP3gJuSTtV3KOwD
         Q0zSZsE1PZKP8SeN+NmVf2PlmL2Be3US7AJaetbgX8cEW2PbXCGh+KPImSDctGSZbSun
         iSEoL8WuEMHFRBWp/4f6D6rF1a1Ygmx5xFvwvh99GMXgm5IILI+W5WJgZlKSy7Nqasru
         YrMg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112;
        h=x-gm-message-state:date:from:to:message-id:mime-version
         :content-transfer-encoding;
        bh=Bh1YP2meeKISmObV2a5kSBFAHpMKCxwYqiKUNeY8/Nk=;
        b=3aOaOykvz8ekvFJZ1E+VOIC5HQe5gLAADBn2a2Y+FskpCP5+GlrJmb48gPPjFMW12S
         tXWTrOp4GhLfX+4cvROL7M/T4eztBWRMn4FK+bA0q9sf6r2TQeCtj0F9Dzjkbqtvckun
         51KWlGYxk54DGBEaQ8zfI52Ukx+huj3+a/2pv9qSqiphSIR3/yEDoK03u2h0s7XcsIpi
         lJ240VB1U+UT71wEkOXRaG+jOK+f/pX6mzFCsDvi5BvugfTNJZw7hLl83rNwSfp9tPZi
         5t0vpRejFh4rVhk3wJ//9DBjTV4icL3JoC8yjxKQ6m9Yt0H4xAZmTDSG9bDUhNuTOfOa
         KymQ==
X-Gm-Message-State: AJIora/K8eVhGMNAnCGmFwOBQ1BXnmFM481LWXKu6Q/ErH6SmUSZMpaV
	TCeDBg9i9KYlcyyfMhAbh8w4s/dIkrs=
X-Google-Smtp-Source: AGRyM1vS3UMHORL08kNzk/SXZ+LI+BTHQw82pFvVt4aHPSeIbULW8lWXZsEuBMcd5g9o3k5tlhpNSg==
X-Received: by 2002:a17:906:4482:b0:70a:19e3:d18a with SMTP id y2-20020a170906448200b0070a19e3d18amr46674148ejo.510.1657226233912;
        Thu, 07 Jul 2022 13:37:13 -0700 (PDT)
Received: from gentoo.home ([2a01:260:8028:10f0::62])
        by smtp.gmail.com with ESMTPSA id 21-20020a170906301500b00728f6d4d0d7sm12669885ejz.67.2022.07.07.13.37.13
        for <[email protected]>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Thu, 07 Jul 2022 13:37:13 -0700 (PDT)
Date: Thu, 7 Jul 2022 22:37:10 +0200
From: Jernej Jakob <[email protected]>
To: [email protected]
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=1.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,MISSING_SUBJECT,
	RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dyne.org

I installed 0.0.2-1 from deb and it appears to work correctly.
Only the symlink is missing by default and would need to be added by
the package on installation.

Acknowledgement sent to Jernej Jakob <[email protected]>:
Extra info received and forwarded to list. Copy sent to B. Stack <[email protected]>.

Your message did not contain a Subject field. They are recommended and useful because the title of a bug is determined using this field. Please remember to include a Subject field in your messages in future.

Full text available.


Information forwarded to [email protected], B. Stack <[email protected]>:
bug#688; Package systemctl-service-shim. Full text available.
Added indication that bug 688 blocks 687 Request was from Jernej Jakob <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at submit) by bugs.devuan.org; 7 Jul 2022 19:54:19 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from mail.dyne.org [141.95.83.167]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Thu, 07 Jul 2022 19:54:19 +0000 (UTC)
Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by mail.dyne.org (Postfix) with ESMTPS id 976C56617FC
	for <[email protected]>; Thu,  7 Jul 2022 21:52:57 +0200 (CEST)
Authentication-Results: mail.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com [email protected] header.b="mPQ3xJgc";
	dkim-atps=neutral
Received: by mail-ej1-f47.google.com with SMTP id u12so34199246eja.8
        for <[email protected]>; Thu, 07 Jul 2022 12:52:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20210112;
        h=date:from:to:subject:message-id:mime-version
         :content-transfer-encoding;
        bh=/CD7GpQCkS3WB30Df/ryLpc+a5wz+46ZTotoNHc9qKI=;
        b=mPQ3xJgcaBkRKiS3TjXqxk7gPtk+zzUwmCKyTH3I5PdM5Y8lF6GEoy7VUQcwweq5ev
         l8JXfz3nxcoXrRmoxmWa0YX42aOMt5QHicSOGaHkqjlWiLslZnzwwqKsHBJ3ebWdooFw
         3ky2ei9teskjReO+blpp+mlYlcEaI9mBql0VAg1rGT8uJ8Ucpgxdj8U7AEq2vLPva8hc
         xQzrKJSMZxqIdXS5XTCquzEddU8wQ1IStqw+RfBRaG//5JAOY2p0hu4rLdUxWmGHAIEQ
         M48qwI/+dWnHTTzdb8sH/x5TBPVRqbJ1eilm2/WhYHtUEE1dmvnHBKcW9fiyCEMgtXNb
         NDqw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112;
        h=x-gm-message-state:date:from:to:subject:message-id:mime-version
         :content-transfer-encoding;
        bh=/CD7GpQCkS3WB30Df/ryLpc+a5wz+46ZTotoNHc9qKI=;
        b=b8LocRzz3o4QLBWlUUX+aPvLBniFLLsNLsKf5GtqtZB47pO2ooOMHrvcSpECKJI3zL
         J77UdJSqfE2cvW+UgnyB5BXYQEeNWVqiGq7yb6cI+apGq9uLd0otqhVJKZfPVkyme6o2
         6XywNvqSIIhlEajfLJKtBv075xNYqB9N/gzvEvUfMY2NN5By0FlGrQVsitI5lnDIFaLu
         lk+DJZUbn0+t++3zOXRveUMazeuPxtTB0BKrNhQiXB3+0iBFFwiZUEn0Y3QMJleLwsIw
         w9CbKXIMzCiSuKSOinORoJTNKx0hyKWzrXllPqOFvDNJEVtnEBfmNpZf6qZtabZ7oJQS
         IFaQ==
X-Gm-Message-State: AJIora99RViqdXF5Nt1vh96CIKv382OC0FiPE9+RX4rXw3Bh4DgipwHX
	At2S28BSK6EPR3j72iZ1lnohAJ6T444=
X-Google-Smtp-Source: AGRyM1uws0xwreyKQwHP0TDaZURl4hsipsaDwm7T0SrAj5W5F0ra6oiTJ53jZwS0pQcPGEqQhLSdGA==
X-Received: by 2002:a17:906:98c8:b0:72a:fcd9:9a54 with SMTP id zd8-20020a17090698c800b0072afcd99a54mr9076489ejb.445.1657223576777;
        Thu, 07 Jul 2022 12:52:56 -0700 (PDT)
Received: from gentoo.home ([2a01:260:8028:10f0::62])
        by smtp.gmail.com with ESMTPSA id 18-20020a170906329200b0072abb95eaa4sm7017566ejw.215.2022.07.07.12.52.55
        for <[email protected]>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Thu, 07 Jul 2022 12:52:56 -0700 (PDT)
Date: Thu, 7 Jul 2022 21:52:50 +0200
From: Jernej Jakob <[email protected]>
To: [email protected]
Subject: systemctl infinite loop, missing /bin/systemctl symlink
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,
	RCVD_IN_MSPIKE_H2,SPF_PASS,URIBL_BLOCKED autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dyne.org

Package: systemctl-service-shim
Version: 0.0.1-1
Severity: grave
Tags: stable

When executing the "enable" action, systemctl enters into an infinite
loop.

# /bin/systemctl enable chrony.service
update-rc.d chrony enable
insserv: warning: script 'cgroups' missing LSB tags
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `cgroups'
insserv: Default-Stop  undefined, assuming empty stop runlevel(s) for script `cgroups'
 * rc-update: chrony already installed in runlevel `default'; skipping
update-rc.d chrony enable
insserv: warning: script 'cgroups' missing LSB tags
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `cgroups'
insserv: Default-Stop  undefined, assuming empty stop runlevel(s) for script `cgroups'
 * rc-update: chrony already installed in runlevel `default'; skipping
update-rc.d chrony enable

Additionally, there is no /bin/systemctl, as the script is installed to
/usr/sbin/systemctl, so some scripts that call a hardcoded binary path
/bin/systemctl won't work without manually creating a symlink after
installation.

I see some code to manipulate the symlink was added in 0.0.2
https://git.devuan.org/devuan/systemctl-service-shim/commit/abd012174f9545f4d4bd236716e51dedcad8c6f1
if I understand it correctly, it's a workaround (fix) for this infinite
loop problem which is caused by the init scripts calling systemctl
again.

In my opinion, the symlink should also be created in the package
postinst script. This way packages that depend on /bin/systemctl
will work immediately without manual symlink creation. There should be
no conflict with systemd, as the package already has a conflict with
systemd, it will never be simultaneously installed.

Acknowledgement sent to Jernej Jakob <[email protected]>:
New bug report received and forwarded. Copy sent to B. Stack <[email protected]>. Full text available.
Report forwarded to [email protected], B. Stack <[email protected]>:
bug#688; Package systemctl-service-shim. 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: Thu, 28 Nov 2024 06:39:01 UTC