34 lines
666 B
Desktop File
34 lines
666 B
Desktop File
[Unit]
|
|
Description=RKNN Counter Dashboard (Flask, port 7000)
|
|
Documentation=file:///opt/feedmill/DEPLOY.md
|
|
After=network-online.target feedmill-counter.service
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
|
|
WorkingDirectory=/opt/feedmill
|
|
|
|
EnvironmentFile=/opt/feedmill/.env
|
|
Environment=PATH=/opt/feedmill/venv/bin:/usr/local/bin:/usr/bin:/bin
|
|
Environment=FLASK_DEBUG=false
|
|
|
|
ExecStart=/opt/feedmill/venv/bin/python counter_dashboard.py
|
|
|
|
TimeoutStopSec=15
|
|
KillSignal=SIGTERM
|
|
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
StartLimitInterval=60s
|
|
StartLimitBurst=3
|
|
|
|
NoNewPrivileges=true
|
|
ProtectHome=true
|
|
PrivateTmp=false
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|