diff options
| -rw-r--r-- | justfile | 12 | ||||
| -rw-r--r-- | systemd-units/.ignore | 1 | ||||
| -rw-r--r-- | systemd-units/base.txt | 1 |
3 files changed, 12 insertions, 2 deletions
@@ -451,9 +451,19 @@ unit-status: else : > "$tmp/ignore" fi + # Curated units missing from the system: use is-enabled to correctly + # handle instantiated template units (which list-unit-files does not show). + while read -r u; do + [ -z "$u" ] && continue + state=$(systemctl is-enabled "$u" 2>/dev/null || true) + case "$state" in + enabled|enabled-runtime|alias|static|indirect|generated) ;; + *) echo " not-enabled: $u" ;; + esac + done < "$tmp/curated" + # Enabled unit files not in curated (minus ignore list). systemctl list-unit-files --state=enabled --no-legend 2>/dev/null \ | awk '{print $1}' | grep -vE '@\.' | sort -u > "$tmp/enabled" - comm -23 "$tmp/curated" "$tmp/enabled" | sed 's/^/ not-enabled: /' comm -13 "$tmp/curated" "$tmp/enabled" | comm -23 - "$tmp/ignore" | sed 's/^/ uncurated: /' # Append one or more units to a group list and enable them (e.g. just unit-add base sshd.service) diff --git a/systemd-units/.ignore b/systemd-units/.ignore index cb1b0ce..32f2225 100644 --- a/systemd-units/.ignore +++ b/systemd-units/.ignore @@ -8,6 +8,7 @@ systemd-networkd.socket systemd-networkd-resolve-hook.socket systemd-networkd-varlink.socket systemd-networkd-varlink-metrics.socket +systemd-oomd.socket systemd-resolved-monitor.socket systemd-resolved-varlink.socket systemd-userdbd.socket diff --git a/systemd-units/base.txt b/systemd-units/base.txt index 85bb09c..6f8582a 100644 --- a/systemd-units/base.txt +++ b/systemd-units/base.txt @@ -6,7 +6,6 @@ systemd-resolved.service systemd-oomd.service reflector.timer paccache.timer -pkgstats.timer acpid.service cpupower.service iwd.service |
