Files
bytetrack-counter-cpp/bytetrack-counter.service
T
2026-07-01 13:38:05 +07:00

43 lines
850 B
Desktop File

[Unit]
Description=ByteTrack Object Detection Counter (C++ port)
Documentation=https://github.com/ifzhang/ByteTrack
After=network-online.target
Wants=network-online.target
RequiresMountsFor=/opt
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/bytetrack-counter-cpp
EnvironmentFile=/opt/bytetrack-counter-cpp/.env
ExecStart=/opt/bytetrack-counter-cpp/build/bytetrack-counter
Restart=always
RestartSec=5
RestartPreventExitStatus=0
StandardOutput=journal
StandardError=journal
SyslogIdentifier=bytetrack-counter
LimitNOFILE=65536
LimitNPROC=4096
NoNewPrivileges=no
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
ReadWritePaths=/opt/bytetrack-counter-cpp /tmp /dev/shm/bytetrack-counter /opt/models
ReadOnlyPaths=/etc
TimeoutStopSec=30
KillMode=mixed
KillSignal=SIGTERM
SendSIGKILL=yes
[Install]
WantedBy=multi-user.target