Skip to content

feat(cli): add systemd daemon management commands - #167

Open
chimera-defi wants to merge 3 commits into
banteg:masterfrom
chimera-defi:feat/daemon-systemd
Open

feat(cli): add systemd daemon management commands#167
chimera-defi wants to merge 3 commits into
banteg:masterfrom
chimera-defi:feat/daemon-systemd

Conversation

@chimera-defi

@chimera-defi chimera-defi commented Jan 17, 2026

Copy link
Copy Markdown

Summary

  • Add takopi daemon subcommands for managing takopi as a systemd user service
  • New commands: install, uninstall, status, logs
  • Add --daemon flag to main command for quick install and start

Test plan

  • Run takopi daemon install --enable --start on a Linux system with systemd
  • Verify service file is created at ~/.config/systemd/user/takopi.service
  • Check takopi daemon status shows correct service status
  • Verify takopi daemon logs displays journalctl output
  • Test takopi daemon uninstall removes the service

🤖 Generated with Claude Code

Add `takopi daemon` subcommands for managing takopi as a systemd user
service, making it easier to run takopi as a background service on Linux.

New commands:
- `takopi daemon install` - Install systemd user service
- `takopi daemon uninstall` - Remove the service
- `takopi daemon status` - Show service status
- `takopi daemon logs` - View service logs

Also adds `--daemon` flag to main command for quick install and start.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@chimera-defi chimera-defi changed the title feat(cli): add systemd daemon management commands [WIP]feat(cli): add systemd daemon management commands Jan 17, 2026
The daemon was failing because systemd runs with a minimal environment.
This passes HOME (needed to find ~/.takopi/takopi.toml) and the current
PATH (captures nvm, cargo, and other tool manager paths) to the service.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@chimera-defi

Copy link
Copy Markdown
Author

Adds a simple command to install and run takopi as a daemon via systemd, inspired by clawdbot.

@chimera-defi chimera-defi changed the title [WIP]feat(cli): add systemd daemon management commands feat(cli): add systemd daemon management commands Jan 17, 2026
@dan-dr

dan-dr commented Jan 18, 2026

Copy link
Copy Markdown

+1000

@banteg banteg added the enhancement New feature or request label Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants