diff --git a/release/config/sing-box.service b/release/config/sing-box.service index 16ca0a32..756f5be4 100644 --- a/release/config/sing-box.service +++ b/release/config/sing-box.service @@ -8,6 +8,7 @@ WorkingDirectory=/var/lib/sing-box CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH ExecStart=/usr/bin/sing-box run -c /etc/sing-box/config.json +ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=10s LimitNOFILE=infinity diff --git a/release/config/sing-box@.service b/release/config/sing-box@.service index 44925767..c480c3fb 100644 --- a/release/config/sing-box@.service +++ b/release/config/sing-box@.service @@ -8,6 +8,7 @@ WorkingDirectory=/var/lib/sing-box-%i CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH ExecStart=/usr/bin/sing-box run -c /etc/sing-box/%i.json +ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=10s LimitNOFILE=infinity diff --git a/release/local/sing-box.service b/release/local/sing-box.service index 2ea74bf1..86e3b22f 100644 --- a/release/local/sing-box.service +++ b/release/local/sing-box.service @@ -8,6 +8,7 @@ WorkingDirectory=/var/lib/sing-box CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH ExecStart=/usr/local/bin/sing-box run -c /usr/local/etc/sing-box/config.json +ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=10s LimitNOFILE=infinity