From c919ad079adce96de15d4afd1708364b3afd5d3f Mon Sep 17 00:00:00 2001 From: Dmitry R Date: Mon, 6 Mar 2023 14:11:12 +0600 Subject: [PATCH] systemd: Add reload command --- release/config/sing-box.service | 1 + release/config/sing-box@.service | 1 + release/local/sing-box.service | 1 + 3 files changed, 3 insertions(+) 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