Skip to content

fix: daemon mode not starting properly via systemctl#142

Merged
gricha merged 2 commits intomainfrom
fix/daemon-mode-systemd
Jan 22, 2026
Merged

fix: daemon mode not starting properly via systemctl#142
gricha merged 2 commits intomainfrom
fix/daemon-mode-systemd

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 22, 2026

Summary

  • Add /bin/bash fallback for shell detection (systemd services don't have $SHELL set)
  • Auto-start service after perry agent install instead of requiring manual systemctl --user start
  • Add SHELL=/bin/bash to generated systemd service file

🤖 Generated with Claude Code

- Add SHELL=/bin/bash fallback for terminals (systemd doesn't set SHELL)
- Auto-start service after `perry agent install` instead of requiring manual start
- Add SHELL env var to systemd service file
Comment thread src/agent/systemd.ts
Comment on lines +130 to +133
try {
await runSystemctl(['start', SERVICE_NAME]);
console.log(`Service ${SERVICE_NAME} started`);
} catch (err) {

This comment was marked as outdated.

@gricha gricha merged commit a1ef654 into main Jan 22, 2026
8 checks passed
@gricha gricha deleted the fix/daemon-mode-systemd branch January 22, 2026 05:51
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