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

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: linuxbox@arcor.de

Date: Sun, 24 Nov 2024 10:06:02 UTC

Severity: normal

Found in version systemctl-service-shim/0.0.5-1

Full log


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

Received: (at submit) by bugs.devuan.org; 24 Nov 2024 10:04:33 +0000
Return-Path: <linuxbox@arcor.de>
Delivered-To: bugs@devuan.org
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 <linuxbox@arcor.de>)
	for <bugs@devuan.org>; 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 header.i=@arcor.de 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; envelope-from=linuxbox@arcor.de; receiver=<UNKNOWN> 
Received: from mr4.vodafonemail.de (mr4.vodafonemail.de [145.253.228.164])
	by email.devuan.org (Postfix) with ESMTPS id 4CEDB1F7
	for <submit@bugs.devuan.org>; 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 <submit@bugs.devuan.org>; 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 <submit@bugs.devuan.org>; 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 <submit@bugs.devuan.org>; 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 <submit@bugs.devuan.org>;
	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 <submit@bugs.devuan.org>; Sun, 24 Nov 2024 11:03:02 +0100 (CET)
Message-ID: <99acec05-14c6-4af0-99e6-f4cd5a97c893@arcor.de>
Date: Sun, 24 Nov 2024 11:03:01 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: submit@bugs.devuan.org
Content-Language: de-DE
From: linuxbox@arcor.de
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

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: Wed Dec 10 12:57:59 2025;