is there an easy way to find any units not in their default (vendor) state?
Christoph Anton Mitterer
calestyo at scientia.net
Fri Jul 2 14:38:02 BST 2021
Hey there.
Perhaps someone can help me with this, cause I couldn't find any real
good solution.
I've noticed that e.g. after upgrading some of the university’s nodes
from buster to bullseye, there were some units which were not in the
default vendor state, e.g.:
# systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/lib/systemd/system/fstrim.timer; disabled; vendor preset: enabled)
Active: inactive (dead)
Trigger: n/a
Triggers: ● fstrim.service
Docs: man:fstrim
# systemctl status rsync.service
● rsync.service - fast remote file copy program daemon
Loaded: loaded (/lib/systemd/system/rsync.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:rsync(1)
man:rsyncd.conf(5)
Some of them (rsync) might have been actually manually disabled by
myself at some point,... but I wouldn't recall to ever have disabled
e.g. fstrim.timer.
Long story short,.. what would generally be useful was a command that
lists any units which are not in their default state (in the sense of
enabled/disabled).
And maybe even another one that lists any units for which manual
overrides exist in any of the possible locations (mostly
/etc/systemd/system/ I guess).
The later is less important since one can just look it up there, but
still something that displays everything in on compact listing would be
nice.
Thanks,
Chris.
More information about the Pkg-systemd-maintainers
mailing list