[Bug 1942623] Re: [Wishlist] systemctl CLI UI should allow glob expansion throughout the service name
Facundo Ciccioli
1942623 at bugs.launchpad.net
Fri Sep 10 15:34:04 UTC 2021
** Changed in: systemd (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1942623
Title:
[Wishlist] systemctl CLI UI should allow glob expansion throughout the
service name
Status in systemd package in Ubuntu:
Invalid
Bug description:
When attempting to craft a command to query and/or restart all
services with name 'something-*-else', such as 'neutron-*-agent' to
match [neutron-l3-agent, neutron-openvswitch-agent, and neutron-dhcp-
agent], I've found that no services are returned from globs in the
middle of the string. The only supported glob seems to be a * at the
end of the service name. Also, single character globbing with ? is not
honored (as in the last example).
To provide an example, I expect each of these commands to return the
dbus.socket and dbus.service, but only 'systemctl status dbu*' shows
the proper return.
drew at grimoire:~$ systemctl status dbus
● dbus.service - D-Bus System Message Bus
Loaded: loaded (/lib/systemd/system/dbus.service; static)
Active: active (running) since Mon 2021-08-30 23:41:27 CDT; 3 days ago
TriggeredBy: ● dbus.socket
Docs: man:dbus-daemon(1)
Main PID: 1357 (dbus-daemon)
Tasks: 1 (limit: 57290)
Memory: 4.9M
CGroup: /system.slice/dbus.service
└─1357 @dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
Warning: some journal files were not opened due to insufficient permissions.
drew at grimoire:~$ systemctl status *bus
drew at grimoire:~$ systemctl status '*bus'
drew at grimoire:~$ systemctl status 'dbu*'
● dbus.service - D-Bus System Message Bus
Loaded: loaded (/lib/systemd/system/dbus.service; static)
Active: active (running) since Mon 2021-08-30 23:41:27 CDT; 3 days ago
TriggeredBy: ● dbus.socket
Docs: man:dbus-daemon(1)
Main PID: 1357 (dbus-daemon)
Tasks: 1 (limit: 57290)
Memory: 5.0M
CGroup: /system.slice/dbus.service
└─1357 @dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
Warning: some journal files were not opened due to insufficient permissions.
● dbus.socket - D-Bus System Message Bus Socket
Loaded: loaded (/lib/systemd/system/dbus.socket; static)
Active: active (running) since Mon 2021-08-30 23:41:27 CDT; 3 days ago
Triggers: ● dbus.service
Listen: /run/dbus/system_bus_socket (Stream)
drew at grimoire:~$ systemctl status 'db*s'
drew at grimoire:~$ systemctl status 'dbu?'
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1942623/+subscriptions
More information about the foundations-bugs
mailing list