smartbotic-webserver.service 804 B

1234567891011121314151617181920212223242526272829
  1. [Unit]
  2. Description=SmartBotic WebServer Service
  3. Documentation=https://github.com/smartbotic/smartbotic
  4. After=network.target
  5. # Without PartOf, "systemctl restart smartbotic.target" starts nothing and
  6. # stops nothing: a target is only a grouping, and restart/stop do not reach
  7. # its members through Wants alone. That silently leaves an old binary running
  8. # after a rebuild, with systemctl still reporting the target as active.
  9. PartOf=smartbotic.target
  10. [Service]
  11. Type=simple
  12. WorkingDirectory=/data/smartbotic
  13. ExecStart=/data/smartbotic/build/smartbotic-webserver
  14. Restart=on-failure
  15. RestartSec=5
  16. StandardOutput=journal
  17. StandardError=journal
  18. # Environment
  19. Environment=LOG_LEVEL=info
  20. Environment=WEBUI_PATH=/data/smartbotic/webui/dist
  21. # Resource limits
  22. LimitNOFILE=65536
  23. [Install]
  24. WantedBy=default.target