Files
netquality/server/deploy/netquality-reflector.service
T
Cursor Agentandyanjiu0721 ef1c5b42ab Load the node server settings from a .env file
The reflector and probe node read .env next to the binary and from the working directory. Command-line flags still override environment variables, which override the file. Missing .env files are ignored, and the packaged defaults stay TCP 19090 and UDP 19091.

Co-authored-by: yanjiu0721 <yanjiu0721@users.noreply.github.com>
2026-11-10 08:39:48 +00:00

21 lines
502 B
Desktop File

[Unit]
Description=NetQuality UDP/TCP reflector
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
# 端口、回显口令和模式写在 /opt/netquality/.env。
# 默认 NQ_MODE=reflector,只做反射。改完 .env 后执行 systemctl restart。
WorkingDirectory=/opt/netquality
ExecStart=/opt/netquality/netquality-reflector
Restart=on-failure
RestartSec=2
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
[Install]
WantedBy=multi-user.target