- Add systemd unit examples and README for local install (Linux) - Extend deployment README with Run at boot (local install) and merge upstream - Add Re-syncing auth tokens subsection to gateway provisioning troubleshooting - install.sh: add --install-service to install systemd user units (Linux) - DOCUMENTATION.md: session notes Made-with: Cursor
24 lines
893 B
Desktop File
24 lines
893 B
Desktop File
# Mission Control frontend (Next.js) — example systemd unit for local install.
|
|
# Copy to ~/.config/systemd/user/ or /etc/systemd/system/, then:
|
|
# sed -e 's|REPO_ROOT|/path/to/openclaw-mission-control|g' -e 's|FRONTEND_PORT|3000|g' -i openclaw-mission-control-frontend.service
|
|
# systemctl --user daemon-reload # or sudo systemctl daemon-reload
|
|
# systemctl --user enable --now openclaw-mission-control-frontend # or sudo systemctl enable --now ...
|
|
#
|
|
# Requires: Node.js/npm in PATH (e.g. from nvm or system install), frontend/.env present.
|
|
|
|
[Unit]
|
|
Description=Mission Control frontend (Next.js)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=REPO_ROOT/frontend
|
|
EnvironmentFile=-REPO_ROOT/frontend/.env
|
|
ExecStart=npm run start -- --hostname 0.0.0.0 --port FRONTEND_PORT
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=default.target
|