Files
NexusGate/systemd/nexusgate-agent.service
T

20 lines
499 B
Desktop File

[Unit]
Description=NexusGate node agent
After=network-online.target nexusgate-sing-box.service
Wants=network-online.target
[Service]
Type=simple
EnvironmentFile=/etc/nexusgate/agent.env
ExecStart=/usr/bin/node --max-old-space-size=64 --optimize-for-size --max-semi-space-size=4 /opt/nexusgate-agent/agent.js
Restart=always
RestartSec=5
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
ReadWritePaths=/etc/nexusgate /var/log/nexusgate
[Install]
WantedBy=multi-user.target