[Unit] Description=Nano Edge Counter Dashboard (Flask, port 5000) Documentation=file:///opt/bytetrack-counter/DEPLOY.md After=network-online.target bytetrack-counter.service Wants=network-online.target [Service] Type=simple User=root Group=root WorkingDirectory=/opt/bytetrack-counter EnvironmentFile=/opt/bytetrack-counter/.env Environment=PATH=/opt/bytetrack-counter/venv/bin:/usr/local/bin:/usr/bin:/bin Environment=FLASK_DEBUG=false ExecStart=/opt/bytetrack-counter/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