Devuan bug report logs - #864
systemctl list-units cannot be called

Package: systemctl-service-shim; Reported by: [email protected]; dated Sun, 24 Nov 2024 10:06:02 UTC; Maintainer for systemctl-service-shim is B. Stack <[email protected]>.

Message received at [email protected]:


Received: (at 864) by bugs.devuan.org; 22 Dec 2024 12:22:36 +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); Sun, 22 Dec 2024 12:22:36 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id ypnOOEAEaGejagAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Sun, 22 Dec 2024 12:21:20 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id B86D84B3; Sun, 22 Dec 2024 12:21:20 +0000 (UTC)
Authentication-Results: email.devuan.org;
	dkim=pass (1024-bit key; unprotected) header.d=arcor.de [email protected] header.a=rsa-sha256 header.s=vfde-mb-mr2-23sep header.b=mJutuUZo;
	dkim-atps=neutral
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,
	T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=145.253.228.165; helo=mr5.vodafonemail.de; [email protected]; receiver=<UNKNOWN> 
Received: from mr5.vodafonemail.de (mr5.vodafonemail.de [145.253.228.165])
	by email.devuan.org (Postfix) with ESMTPS id 95B3915B
	for <[email protected]>; Sun, 22 Dec 2024 12:21:17 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arcor.de;
	s=vfde-mb-mr2-23sep; t=1734870076;
	bh=gVST7/2yB/VZr1bkx8K7qDyUqsCu/WZ6C97H3iEE1Eg=;
	h=Message-ID:Date:User-Agent:To:Content-Language:From:Subject:
	 Content-Type:From;
	b=mJutuUZocSc4W9++Wx+JZaFU/fYgyu0gHg88k7m/avSmlq1dN4P2jg27ujGdNk0xK
	 9h0yUcnSwFfo1k7WfWn+WFeIJVaL2f3Coq+C1wdQpL0uevdsFe27NcasGarTPFR2u6
	 f0wu9vS9slV1qZRI8hDgJW1PbgR/u4EVkuTKSMu4=
Received: from smtp.vodafone.de (unknown [10.0.0.2])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by mr5.vodafonemail.de (Postfix) with ESMTPS id 4YGKy45JmMz1y3S
	for <[email protected]>; Sun, 22 Dec 2024 12:21:16 +0000 (UTC)
Received: from pluto (p57a51e09.dip0.t-ipconnect.de [87.165.30.9])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.vodafone.de (Postfix) with ESMTPSA id 4YGKy43L9Dz9051
	for <[email protected]>; Sun, 22 Dec 2024 12:21:13 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by pluto (Postfix) with ESMTP id C9B6E6005E7
	for <[email protected]>; Sun, 22 Dec 2024 13:21:12 +0100 (CET)
Received: from pluto ([127.0.0.1])
	by localhost (pluto.local [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id KGP6RXn8l6-C for <[email protected]>;
	Sun, 22 Dec 2024 13:21:09 +0100 (CET)
Received: from [192.168.179.20] (ork.fritz.box [192.168.179.20])
	by pluto (Postfix) with ESMTPS id 0490E6005DE
	for <[email protected]>; Sun, 22 Dec 2024 13:21:08 +0100 (CET)
Message-ID: <[email protected]>
Date: Sun, 22 Dec 2024 13:21:08 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: [email protected]
Content-Language: de-DE
From: [email protected]
Subject: systemctl list-units cannot be called
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-purgate-type: clean
X-purgate: clean
X-purgate-size: 162
X-purgate-ID: 155817::1734870076-03FFE477-6DA1CD03/0/0

I have now found that there is already a package “systemctl” in the 
Debian repository which provides extensive functionality for most 
sytemctl commands.

Acknowledgement sent to [email protected]:
Extra info received and forwarded to list. Copy sent to B. Stack <[email protected]>. Full text available.
Information forwarded to [email protected], B. Stack <[email protected]>:
bug#864; Package systemctl-service-shim. Full text available.

Message received at [email protected]:


Received: (at submit) by bugs.devuan.org; 24 Nov 2024 10:04:33 +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); Sun, 24 Nov 2024 10:04:33 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id jTj9AuT5QmfyXwAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Sun, 24 Nov 2024 10:03:16 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id C02F8499; Sun, 24 Nov 2024 10:03:15 +0000 (UTC)
Authentication-Results: email.devuan.org;
	dkim=pass (1024-bit key; unprotected) header.d=arcor.de [email protected] header.a=rsa-sha256 header.s=vfde-mb-mr2-23sep header.b=r/VV0FRi;
	dkim-atps=neutral
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,
	T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=145.253.228.164; helo=mr4.vodafonemail.de; [email protected]; receiver=<UNKNOWN> 
Received: from mr4.vodafonemail.de (mr4.vodafonemail.de [145.253.228.164])
	by email.devuan.org (Postfix) with ESMTPS id 4CEDB1F7
	for <[email protected]>; Sun, 24 Nov 2024 10:03:13 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arcor.de;
	s=vfde-mb-mr2-23sep; t=1732442592;
	bh=N+QiCGUGYrLxYm0S+c2RfYJZOrB/v0uVr4OHkx6bGi8=;
	h=Message-ID:Date:User-Agent:To:Content-Language:From:Subject:
	 Content-Type:From;
	b=r/VV0FRif8oNUaNSt+VzpLlKbwcYfV/vVMbS/ckLAt2JJdl6a21aq0AswT2CSucf7
	 8qVX5f3hr4aSkaYW8jb77m4w/j0mgM2JZ5QUEqJAqnzkhAOVeq1TC+stXSuKBvxhw/
	 5sfSWFbt2NhqHY+M9dtEjQqs9IKVMfLRFD/+uTCo=
Received: from smtp.vodafone.de (unknown [10.0.0.2])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by mr4.vodafonemail.de (Postfix) with ESMTPS id 4Xx4Ch0CLyz1xww
	for <[email protected]>; Sun, 24 Nov 2024 10:03:11 +0000 (UTC)
Received: from pluto (p54832fc6.dip0.t-ipconnect.de [84.131.47.198])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.vodafone.de (Postfix) with ESMTPSA id 4Xx4Cb2Q17z8sYJ
	for <[email protected]>; Sun, 24 Nov 2024 10:03:03 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by pluto (Postfix) with ESMTP id 6839C6005B4
	for <[email protected]>; Sun, 24 Nov 2024 11:03:03 +0100 (CET)
Received: from pluto ([127.0.0.1])
	by localhost (pluto.local [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id pKIup-5JBycr for <[email protected]>;
	Sun, 24 Nov 2024 11:03:02 +0100 (CET)
Received: from [192.168.179.20] (ork.fritz.box [192.168.179.20])
	by pluto (Postfix) with ESMTPS id 2916D6005B1
	for <[email protected]>; Sun, 24 Nov 2024 11:03:02 +0100 (CET)
Message-ID: <[email protected]>
Date: Sun, 24 Nov 2024 11:03:01 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: [email protected]
Content-Language: de-DE
From: [email protected]
Subject: systemctl list-units cannot be called
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-purgate-type: clean
X-purgate: clean
X-purgate-size: 720
X-purgate-ID: 155817::1732442587-1FFFE463-5F13EF3A/0/0

Package: systemctl-service-shim
Version: 0.0.5-1

Hello Maintainer,

please extend the script systemctl so that "systemctl list-units" can 
also be called, for example like this:

#######################
#!/bin/bash

list-units() {
     local pattern="${1:-.*}"

     for service in /etc/init.d/*; do
         service_name=$(basename "$service")

         if [[ "$service_name" =~ $pattern ]]; then
             if "$service" status 2>/dev/null | grep -q -E 
"running|active"; then
                 echo "$service_name"
             fi
         fi
     done
}

list-units "$1"
#######################

Can be called with, or without regular expression as an argument.

Many thanks
Klaus

Acknowledgement sent to [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#864; 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: Sat, 18 Jan 2025 04:39:02 UTC