Devuan bug report logs -
#864
systemctl list-units cannot be called
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
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):
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):
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.