openclaw/deploy/systemd/clawdbot-gateway.service.example
elliotsecops ab3154c8f0 feat(deploy): add systemd templates for production linux deployment
Adds production-ready systemd service templates for Linux deployments.

Includes:
- : Auto-restart configuration for the main process.
- : Configuration for Cloudflare Tunnel dependent on the gateway.
- Documentation in .

This simplifies self-hosting setup on VPS and Home Lab environments.
2026-01-28 12:21:06 -04:00

22 lines
619 B
Plaintext

[Unit]
Description=Clawdbot Gateway
After=network.target
[Service]
# Replace <YOUR_USER> with your linux username (e.g. ubuntu, pi, etc)
User=<YOUR_USER>
# Replace <PATH_TO_CLAWDBOT> with the absolute path to the repo (e.g. /home/user/clawdbot)
WorkingDirectory=<PATH_TO_CLAWDBOT>
# Adjust node path if necessary (run 'which node' to find yours)
# You can change the port or auth settings here
ExecStart=/usr/bin/node dist/entry.js gateway --port 18789 --auth token --token <YOUR_SECURE_TOKEN>
# Restart configuration
Restart=always
RestartSec=3
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target