docs: document pi2 service and the CLI-owned service control
- README/install: the plugin attaches → `pi2 service start` → spawn ladder, `:PiWebStop` detaches only the bridge, `:PiWebService`/`:PiWebLog` exist. - deployment §8.6/§9: the new subcommand, its exit-code contract and the one-command `pi2 service enable` after `install-service --write`. - ADR 0002: service-manager commands belong to the CLI (`pi2 service …`), the plugin's ladder gains $PI2_DAEMON_BIN, `:PiWebStop` never signals a service-managed daemon, and `:PiWebInstall` installs `@yuez/pi2d@latest` (optionally pinned by a <version> argument) after confirmation.
This commit is contained in:
1 parent
4eda2b9420
commit
f854ba8d4f
4 files changed
+58
-26
No files matched your search
@@ -121,6 +121,8 @@ pi2 daemon # foreground daemon
|
||||
pi2 stop # stop running daemon (alias: pi2 daemon stop)
|
||||
pi2 open # open browser console signed in (loopback only)
|
||||
pi2 install-service --write # render and write user service file
|
||||
pi2 service status # unit, enabled, active, linger (--json for machines)
|
||||
pi2 service enable # daemon-reload + enable --now (start|stop|disable too)
|
||||
pi2 uninstall-service --write # remove user service file
|
||||
pi2 status # daemon status, active instances, and health
|
||||
pi2 doctor # verify node/runtime, nvim, pi, curl, sockets, protocol
|
||||
|
||||
Reference in new issue
Block a user