The "systemctl is-enabled" command is returning an exit-code of 0 for both enabled and disabled services. The man page indicates that a non-zero exit code should be returned if the unit is disabled however this is not currently the case. You can verify this by disabling a unit with "systemctl disable" followed by a "systemctl is-enabled" against the same unit which will return an exit code of 0.
I forgot to mention that this was against systemd 27.
Created attachment 47247 [details] [review] systemctl is-enabled patch The attached patch seems to fix this problem. After applying the patch systemctl is-enabled behaves as described in the man page.
A similar patch has now now been merged. Thanks a lot!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.