2026-06-26 17:55:15 +08:00

22 lines
508 B
Desktop File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[Unit]
Description=DroneScrew Detection Server
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/dronescrewserver
# MVS SDK 需要完整的库路径(包括 ThirdParty
Environment=LD_LIBRARY_PATH=/opt/sysroot/lib:/usr/lib:/lib
# USB 内存配置(启动前执行)
ExecStartPre=/bin/sh -c 'echo 2000 > /sys/module/usbcore/parameters/usbfs_memory_mb || true'
ExecStart=/opt/dronescrewserver/DroneScrewServer
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target