feat: add process management commands for daemon control

Add systemd-style subcommands for managing KVS instances:
- start <config>  - Daemonize and run in background
- stop <config>   - Gracefully stop daemon
- restart <config> - Restart daemon
- status [config] - Show status of all or specific instances

Key features:
- PID files stored in ~/.kvs/pids/ (global across all directories)
- Logs stored in ~/.kvs/logs/
- Config names support both 'node1' and 'node1.yaml' formats
- Backward compatible: 'kvs config.yaml' still runs in foreground
- Proper stale PID detection and cleanup

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ryystandClaude committed 2025-10-05 22:56:16 +03:00
1 parent 377af163f0
commit a41e0d625c
4 files changed
+461 -5

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
.claude/
.kvs/
data/
data*/
*.yaml