feat(cli): add systemd daemon management commands - #167
Open
chimera-defi wants to merge 3 commits into
Open
Conversation
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>
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>
Author
|
Adds a simple command to install and run takopi as a daemon via systemd, inspired by clawdbot. |
|
+1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
takopi daemonsubcommands for managing takopi as a systemd user serviceinstall,uninstall,status,logs--daemonflag to main command for quick install and startTest plan
takopi daemon install --enable --starton a Linux system with systemd~/.config/systemd/user/takopi.servicetakopi daemon statusshows correct service statustakopi daemon logsdisplays journalctl outputtakopi daemon uninstallremoves the service🤖 Generated with Claude Code