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

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: Jernej Jakob <jernej.jakob@gmail.com>

Date: Thu, 7 Jul 2022 19:56:02 UTC

Severity: grave

Tags: stable

Found in version 0.0.1-1

Fixed in version 0.0.3-1

Done: dak@devuan.org

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to devuan-bugs@lists.dyne.org, B. Stack <bgstack15@gmail.com>:
bug#688; Package systemctl-service-shim. (Thu, 07 Jul 2022 19:56:02 GMT) (full text, mbox, link).


Acknowledgement sent to Jernej Jakob <jernej.jakob@gmail.com>:
New bug report received and forwarded. Copy sent to B. Stack <bgstack15@gmail.com>. (Thu, 07 Jul 2022 19:56:04 GMT) (full text, mbox, link).


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

From: Jernej Jakob <jernej.jakob@gmail.com>
To: submit@bugs.devuan.org
Subject: systemctl infinite loop, missing /bin/systemctl symlink
Date: Thu, 7 Jul 2022 21:52:50 +0200
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.

Added indication that bug 688 blocks 687 Request was from Jernej Jakob <jernej.jakob@gmail.com> to control@bugs.devuan.org. (Thu, 07 Jul 2022 20:04:02 GMT) (full text, mbox, link).


Information forwarded to devuan-bugs@lists.dyne.org, B. Stack <bgstack15@gmail.com>:
bug#688; Package systemctl-service-shim. (Thu, 07 Jul 2022 20:38:01 GMT) (full text, mbox, link).


Acknowledgement sent to Jernej Jakob <jernej.jakob@gmail.com>:
Extra info received and forwarded to list. Copy sent to B. Stack <bgstack15@gmail.com>.

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.

(Thu, 07 Jul 2022 20:38:04 GMT) (full text, mbox, link).


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

From: Jernej Jakob <jernej.jakob@gmail.com>
To: 688@bugs.devuan.org
Date: Thu, 7 Jul 2022 22:37:10 +0200
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.

Reply sent to dak@devuan.org:
You have taken responsibility. (Tue, 12 Jul 2022 17:14:02 GMT) (full text, mbox, link).


Notification sent to Jernej Jakob <jernej.jakob@gmail.com>:
bug acknowledged by developer. (Tue, 12 Jul 2022 17:14:05 GMT) (full text, mbox, link).


Message #17 received at 688-done@bugs.devuan.org (full text, mbox, reply):

From: dak@devuan.org
To: 688-done@bugs.devuan.org
Subject: #688: fixed in src:systemctl-service-shim version 0.0.3-1
Date: Tue, 12 Jul 2022 15:53:37 +0000
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 <bgstack15@gmail.com>
Changed-By: B. Stack <bgstack15@gmail.com>
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-----

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: Thu Oct 10 04:39:28 2024;