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

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#864; Package systemctl-service-shim. (Sun, 24 Nov 2024 10:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to linuxbox@arcor.de:
New bug report received and forwarded. Copy sent to B. Stack <bgstack15@gmail.com>. (Sun, 24 Nov 2024 10:06:03 GMT) (full text, mbox, link).


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

From: linuxbox@arcor.de
To: submit@bugs.devuan.org
Subject: systemctl list-units cannot be called
Date: Sun, 24 Nov 2024 11:03:01 +0100
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

Information forwarded to devuan-bugs@lists.dyne.org, B. Stack <bgstack15@gmail.com>:
bug#864; Package systemctl-service-shim. (Sun, 22 Dec 2024 12:24:01 GMT) (full text, mbox, link).


Acknowledgement sent to linuxbox@arcor.de:
Extra info received and forwarded to list. Copy sent to B. Stack <bgstack15@gmail.com>. (Sun, 22 Dec 2024 12:24:03 GMT) (full text, mbox, link).


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

From: linuxbox@arcor.de
To: 864@bugs.devuan.org
Subject: systemctl list-units cannot be called
Date: Sun, 22 Dec 2024 13:21:08 +0100
I have now found that there is already a package “systemctl” in the 
Debian repository which provides extensive functionality for most 
sytemctl commands.

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 08:15:18 2025;