| 1234567891011121314151617181920212223242526272829 |
- [Unit]
- Description=SmartBotic WebServer Service
- Documentation=https://github.com/smartbotic/smartbotic
- After=network.target
- # Without PartOf, "systemctl restart smartbotic.target" starts nothing and
- # stops nothing: a target is only a grouping, and restart/stop do not reach
- # its members through Wants alone. That silently leaves an old binary running
- # after a rebuild, with systemctl still reporting the target as active.
- PartOf=smartbotic.target
- [Service]
- Type=simple
- WorkingDirectory=/data/smartbotic
- ExecStart=/data/smartbotic/build/smartbotic-webserver
- Restart=on-failure
- RestartSec=5
- StandardOutput=journal
- StandardError=journal
- # Environment
- Environment=LOG_LEVEL=info
- Environment=WEBUI_PATH=/data/smartbotic/webui/dist
- # Resource limits
- LimitNOFILE=65536
- [Install]
- WantedBy=default.target
|