github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/release/config/sing-box@.service (about)

     1  [Unit]
     2  Description=sing-box service
     3  Documentation=https://sing-box.sagernet.org
     4  After=network.target nss-lookup.target
     5  
     6  [Service]
     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/bin/sing-box -D /var/lib/sing-box-%i -c /etc/sing-box/%i.json run
    10  ExecReload=/bin/kill -HUP $MAINPID
    11  Restart=on-failure
    12  RestartSec=10s
    13  LimitNOFILE=infinity
    14  
    15  [Install]
    16  WantedBy=multi-user.target