openclaw.service.j2 370 B

12345678910111213141516
  1. [Unit]
  2. Description=OpenClaw Telegram Bot
  3. After=network.target
  4. [Service]
  5. Type=simple
  6. ExecStart=/usr/bin/python3 {{ openclaw_data_dir }}/bot.py --config {{ openclaw_data_dir }}/config.yml
  7. Restart=on-failure
  8. RestartSec=5s
  9. StandardOutput=journal
  10. StandardError=journal
  11. SyslogIdentifier=openclaw
  12. WorkingDirectory={{ openclaw_data_dir }}
  13. [Install]
  14. WantedBy=multi-user.target