rename daemon

This commit is contained in:
Harivansh Rathi 2026-03-05 21:37:29 -08:00
parent 01a18a96aa
commit 0973c1cbc5
2 changed files with 9 additions and 14 deletions

View file

@ -56,7 +56,7 @@ This installer:
- writes `~/.local/bin/pi` launcher,
- populates `~/.pi/agent/settings.json` with package list,
- installs packages (if `npm` is available),
- and can install a user systemd service for `pi gateway` so it stays alive.
- and can install a user systemd service for `pi daemon` so it stays alive.
Preinstalled package sources are:
@ -100,20 +100,21 @@ Run:
Run in background with extensions active:
```bash
./pi gateway
./pi daemon
```
For a user systemd setup, create `~/.config/systemd/user/pi.service` with:
```ini
[Unit]
Description=pi gateway
Description=pi daemon
After=network-online.target
[Service]
Type=simple
Environment=CO_MONO_AGENT_DIR=%h/.pi/agent
Environment=PI_CODING_AGENT_DIR=%h/.pi/agent
ExecStart=/absolute/path/to/repo/pi gateway
ExecStart=/absolute/path/to/repo/pi daemon
Restart=always
RestartSec=5