Skip to content

Fix systemd boot runtime supervision - #288

Merged
wnlen merged 1 commit into
masterfrom
fix/issue-287-systemd-boot
Jul 2, 2026
Merged

Fix systemd boot runtime supervision#288
wnlen merged 1 commit into
masterfrom
fix/issue-287-systemd-boot

Conversation

@wnlen

@wnlen wnlen commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Change systemd and systemd-user units to Type=simple and run the kernel in the foreground through clashctl run-direct.
  • Keep the existing background start-direct path for script/manual compatibility.
  • Refresh the runtime backend entry during clashctl update so existing installs receive the new unit template.
  • Expand clashctl logs service output with systemctl status, journal, and mihomo file log fallback.
  • Add a regression check that systemd units no longer use Type=forking/PIDFile.

Validation

  • bash -n install.sh uninstall.sh scripts/core/*.sh scripts/init/*.sh scripts/dev/*.sh
  • for f in scripts/dev/*.sh; do bash "$f"; done

Issue

Addresses #287.

@wnlen
wnlen merged commit df859b0 into master Jul 2, 2026
1 check passed
@wnlen
wnlen deleted the fix/issue-287-systemd-boot branch July 2, 2026 09:11
@wnlen wnlen mentioned this pull request Jul 2, 2026
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