sing-box.service 552 B

1234567891011121314151617
  1. [Unit]
  2. Description=sing-box service
  3. Documentation=https://sing-box.sagernet.org
  4. After=network.target nss-lookup.target
  5. [Service]
  6. WorkingDirectory=/var/lib/sing-box
  7. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH
  8. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH
  9. ExecStart=/usr/local/bin/sing-box run -c /usr/local/etc/sing-box/config.json
  10. ExecReload=/bin/kill -HUP $MAINPID
  11. Restart=on-failure
  12. RestartSec=10s
  13. LimitNOFILE=infinity
  14. [Install]
  15. WantedBy=multi-user.target