Files
bytetrack-counter/bytetrack-counter.service
T
2026-06-25 18:55:29 +07:00

36 lines
819 B
Desktop File

[Unit]
Description=NanoPi Edge YOLO Batch Counter (RTSP + RKNN)
Documentation=file:///opt/bytetrack-counter/DEPLOY.md
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/bytetrack-counter
EnvironmentFile=/opt/bytetrack-counter/.env
Environment=PYTHONNOUSERSITE=1
Environment=YOLO_CONFIG_DIR=/opt/bytetrack-counter/.ultralytics
Environment=TORCH_HOME=/opt/bytetrack-counter/.torch
Environment=PATH=/opt/bytetrack-counter/venv/bin:/usr/local/bin:/usr/bin:/bin
ExecStart=/opt/bytetrack-counter/venv/bin/python counter_live_rknn_bytetrack.py
TimeoutStopSec=30
KillSignal=SIGTERM
Restart=on-failure
RestartSec=10
StartLimitInterval=120s
StartLimitBurst=5
NoNewPrivileges=true
ProtectHome=true
PrivateTmp=false
[Install]
WantedBy=multi-user.target