Skip to content

Detect stale systemd service templates in doctor - #289

Merged
wnlen merged 1 commit into
masterfrom
fix/doctor-stale-systemd-unit
Jul 2, 2026
Merged

Detect stale systemd service templates in doctor#289
wnlen merged 1 commit into
masterfrom
fix/doctor-stale-systemd-unit

Conversation

@wnlen

@wnlen wnlen commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a read-only doctor check for stale systemd/systemd-user unit templates.
  • Warn when an installed unit still uses Type=forking, PIDFile=, or clashctl start-direct.
  • Tell users the explicit refresh and restart commands instead of automatically rewriting unit files.
  • Add a regression check for stale unit detection and warning text.

Validation

  • bash -n install.sh uninstall.sh scripts/core/*.sh scripts/init/*.sh scripts/dev/*.sh
  • for f in scripts/dev/*.sh; do case "$f" in *check-runtime-config-normalization.sh) echo "skip $f (needs temporary yq download)";; *) bash "$f";; esac; done

Risk

Read-only diagnostic change. It does not write unit files, restart services, or change update behavior.

@wnlen
wnlen merged commit 1ed7b86 into master Jul 2, 2026
1 check passed
@wnlen
wnlen deleted the fix/doctor-stale-systemd-unit branch July 2, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant