22 lines
508 B
Desktop File
22 lines
508 B
Desktop File
[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
|