Update hapi runner command to use start-sync (#685)

* Update hapi runner command to use start-sync

* Update installation instructions for start command
This commit is contained in:
leko
2026-05-26 16:13:25 +08:00
committed by GitHub
parent 9af6696a68
commit db934a9d5b
+5 -6
View File
@@ -366,7 +366,7 @@ With the runner running:
If you prefer pm2 for process management:
```bash
pm2 start "hapi runner start --foreground" --name hapi-runner
pm2 start "hapi runner start-sync" --name hapi-runner
pm2 save
```
</details>
@@ -385,7 +385,7 @@ Simple one-liner for quick background runs:
nohup hapi hub --relay > ~/.hapi/logs/hub.log 2>&1 &
# Runner
nohup hapi runner start --foreground > ~/.hapi/logs/runner.log 2>&1 &
nohup hapi runner start-sync > ~/.hapi/logs/runner.log 2>&1 &
```
View logs:
@@ -414,7 +414,7 @@ npm install -g pm2
# Start hub and runner
pm2 start "hapi hub --relay" --name hapi-hub
pm2 start "hapi runner start --foreground" --name hapi-runner
pm2 start "hapi runner start-sync" --name hapi-runner
# View status and logs
pm2 status
@@ -472,8 +472,7 @@ Create plist files for automatic startup on macOS.
<array>
<string>/usr/local/bin/hapi</string>
<string>runner</string>
<string>start</string>
<string>--foreground</string>
<string>start-sync</string>
</array>
<key>RunAtLoad</key>
<true/>
@@ -537,7 +536,7 @@ After=network.target hapi-hub.service
[Service]
Type=simple
ExecStart=/usr/local/bin/hapi runner start --foreground
ExecStart=/usr/local/bin/hapi runner start-sync
Restart=always
RestartSec=5