feat(serve): run taosmd serve as a persistent background service (systemd/launchd/Windows) - #132
Conversation
…(systemd/launchd/Windows)
|
Warning Review limit reached
More reviews will be available in 3 minutes and 11 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Lets users run the local memory HTTP API / dashboard as an always-on background service, so the live (SSE-backed) inspector is persistently available without manually launching
taosmd serve.What
taosmd serveflags (mutually exclusive):--install-service,--uninstall-service,--service-status. They install/manage a service that runstaosmd servewith the same--host/--port/--data-diryou pass, then exit (no foreground server).taosmd/service_install.pywith pure rendering functions + platform dispatch (sys.platform):~/.config/systemd/user/taosmd.service(Restart=on-failure,RestartSec=5), thensystemctl --user daemon-reload+enable --now.~/Library/LaunchAgents/com.taosmd.serve.plist(RunAtLoad,KeepAlive, logs under~/Library/Logs/taosmd/), loaded vialaunchctl.scripts/install-service.ps1(Scheduled Task at logon,-Uninstallswitch); the CLI prints clear instructions pointing to it rather than attempting install from Python.docs/serve-service.md— per-platform install/uninstall/status, log locations, how to change host/port/data-dir, and the localhost-vs-LAN/no-auth security note.Notes
taosmd serveand all defaults unchanged. stdlib only, no new deps.subprocesscalled with explicit arg lists (nevershell=True); graceful handling when systemctl/launchctl are absent.tests/test_service_install.py, all hermetic — rendering tested as pure functions, writes under tmp_path, no real~/.config/~/Librarytouched).