Skip to content

馃懝 fix: daemon startup reliability on install/restart - #2

Merged
sdougbrown merged 1 commit into
mainfrom
fix/daemon-startup-reliability
May 19, 2026
Merged

馃懝 fix: daemon startup reliability on install/restart#2
sdougbrown merged 1 commit into
mainfrom
fix/daemon-startup-reliability

Conversation

@sdougbrown

Copy link
Copy Markdown
Owner
  • Validate PID file points to actual git-tend process (fixes stale PID after reboot/crash blocking startup). Adds isOwnProcess platform check.
  • Use service manager for restart: systemctl --user restart on Linux, launchctl kickstart on macOS. Fixes Restart=on-failure not respawning after clean SIGTERM exit.
  • Run systemctl --user daemon-reload before enable --now during install.
  • Differentiate 'daemon not running' vs 'no repos found' in status output.
  • Ensure state directory exists before writing greet.last.
  • Add test coverage for isOwnProcess and empty-repo status branch.

- Validate PID file points to actual git-tend process (fixes stale PID
  after reboot/crash blocking startup). Adds isOwnProcess platform check.
- Use service manager for restart: systemctl --user restart on Linux,
  launchctl kickstart on macOS. Fixes Restart=on-failure not respawning
  after clean SIGTERM exit.
- Run systemctl --user daemon-reload before enable --now during install.
- Differentiate 'daemon not running' vs 'no repos found' in status output.
- Ensure state directory exists before writing greet.last.
- Add test coverage for isOwnProcess and empty-repo status branch.
@sdougbrown
sdougbrown merged commit 75a6aa6 into main May 19, 2026
2 checks passed
@sdougbrown
sdougbrown deleted the fix/daemon-startup-reliability branch May 19, 2026 14:19
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