[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 ExecStart=/opt/bytetrack-counter-cpp/build/bytetrack-counter /opt/bytetrack-counter-cpp/.env Restart=always RestartSec=5 RestartPreventExitStatus=0 StandardOutput=journal StandardError=journal SyslogIdentifier=bytetrack-counter LimitNOFILE=65536 LimitNPROC=4096 NoNewPrivileges=no ProtectSystem=full ProtectHome=yes PrivateTmp=no ReadWritePaths=/opt/bytetrack-counter-cpp /opt/bytetrack-counter /tmp /dev/shm/bytetrack-counter /opt/models ReadOnlyPaths=/etc TimeoutStopSec=30 KillMode=mixed KillSignal=SIGTERM SendSIGKILL=yes [Install] WantedBy=multi-user.target