Fix broken installed-service detection in systemd uninstall
systemctl list-units exits 0 whether or not any pattern matches, so the filter was a no-op and every unit was always treated as installed. Detect installed units by checking for the unit file on disk instead.
C
Christopher Meng committed
d5e0c2bb899616a349941c5888c1f2063ab65b7d
Parent: 77e8965
Committed by Christopher Meng <cmeng@cloudflare.com>
on 6/25/2026, 5:24:46 PM