I wanted to check if some services where running on a machine. The names of the services all start with integration@
, e.g. integration@foobar
.
So to check for all the services, I simply ran systemctl status integration@*
and it worked:
● integration@identity.service - integration App identity
Loaded: loaded (/etc/systemd/system/integration@identity.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2023-03-21 14:52:48 CET; 1h 54min ago
Main PID: 262723 (node)
Tasks: 20 (limit: 24707)
Memory: 112.2M
CGroup: /system.slice/system-integration.slice/integration@identity.service
├─262723 /usr/bin/node lib/main.js run health,identity
● integration@crypto.service - integration App crypto
Loaded: loaded (/etc/systemd/system/integration@crypto.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2023-03-21 14:32:19 CET; 2h 14min ago
Main PID: 242900 (node)
Tasks: 20 (limit: 24707)
Memory: 107.7M
CGroup: /system.slice/system-integration.slice/integration@crypto.service
├─242900 /usr/bin/node lib/main.js run health,crypto
Pretty nice of systemd. I also learned about systemd-escape, but that’s for another blog-post.
Top comments (0)