From 0973c1cbc52b942700e87c8ed360f0e59f27afa8 Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Thu, 5 Mar 2026 21:37:29 -0800 Subject: [PATCH] rename daemon --- README.md | 9 +++++---- public-install.sh | 14 ++++---------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 6ff8c7e1..c123de2b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/public-install.sh b/public-install.sh index 03e2426b..48997d9c 100755 --- a/public-install.sh +++ b/public-install.sh @@ -231,10 +231,8 @@ resolve_release_tag() { platform_assets() { if [[ "$PLATFORM" == "windows"* ]]; then echo "pi-${PLATFORM}.zip" - echo "co-mono-${PLATFORM}.zip" else echo "pi-${PLATFORM}.tar.gz" - echo "co-mono-${PLATFORM}.tar.gz" fi } @@ -347,14 +345,14 @@ write_service_file() { local service_path="$HOME/.config/systemd/user/${SERVICE_NAME}.service" cat > "$service_path" <