4 ms·
You didn't have any issues, so you never had the pain of diagnosing some systemd-related problem.
by blueflow 2y ago
You didn't have any issues, so you never had the pain of diagnosing some systemd-related problem.
- bayindirh 2y agosystemd fighting against other daemons without any warnings and error messages is my absolute favorite. Not being able to list which components are enabled and not being able to format output of "list-units" for easy machine readability are close seconds. I mean, if OpenStack guys has figured this out, self-proclaimed demigods of Linux can do that, amirite?
- rascul 2y ago> not being able to format output of "list-units" for easy machine readability are close seconds. Seems like 'systemctl -o json list-units' might be what you want.
- blueflow 2y agoAs of systemd 252, this is undocumented functionality. -o is only specified for systemctl status.
- rascul 2y agoI noticed that, tried it anyway, and it worked. Would probably be helpful if it was properly documented.
- bayindirh 2y agoWhile it's noted that it's undocumented behavior (-o is non-existent in systemctl man page), so it might go away tomorrow, it's not a bad start. However what I want is more like systemctl -o json list-units --type=service --state=active I can add --terse for single line output to prevent adding jq to the pipe for processing that JSON. Maybe instead of writing a bit better code and actually documenting these options, they can just absorb jq as jsonctl, who knows. Sorry, I kinda get angry when I encounter shenanigans like undocumented functionality, or hostile-replacing a daemon because they felt like replacing something really working well for the last 20ish years, just for fun, you know.
- throw0101d 2y ago> You didn't have any issues, so you never had the pain of diagnosing some systemd-related problem. My personal pet peeve is doing a `ps -elfH` and seeing systemd-ask-password at the leaf of a process tree just sitting there: * https://www.freedesktop.org/software/systemd/man/latest/systemd-ask-password.html https://www.freedesktop.org/software/systemd/man/latest/syst... Why are asking for a password? Which password? For what service? Can I get the prompt for it somehow? Can I echo something to? I've had this happen in the past with mysqld, and I had to resort to running /usr/sbin/mysqld from the CLI manually to get any kind of error or logging messages.