Files
bytetrack-counter-go/bytetrack-counter-go.service
2026-06-30 18:49:39 +07:00

33 lines
611 B
Desktop File

[Unit]
Description=Edge ByteTrack Counter (RTSP + RKNN) — Go
Documentation=file:///opt/bytetrack-counter-go/DEPLOY.md
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/bytetrack-counter-go
EnvironmentFile=/opt/bytetrack-counter-go/.env
Environment=PATH=/usr/local/bin:/usr/bin:/bin
ExecStart=/opt/bytetrack-counter-go/counter
TimeoutStopSec=30
KillSignal=SIGTERM
Restart=on-failure
RestartSec=10
StartLimitInterval=120s
StartLimitBurst=5
NoNewPrivileges=true
ProtectHome=true
PrivateTmp=false
[Install]
WantedBy=multi-user.target