Skip to content

Commit 89f0046

Browse files
committed
fix: ensure sing-box service wait for network online
ensure sing-box service wait for network online by adding `network-online.target` dependency
1 parent fc96d64 commit 89f0046

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

release/config/sing-box.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Description=sing-box service
33
Documentation=https://sing-box.sagernet.org
44
After=network.target nss-lookup.target network-online.target
5+
Wants=network-online.target
56

67
[Service]
78
User=sing-box

release/config/[email protected]

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Description=sing-box service
33
Documentation=https://sing-box.sagernet.org
44
After=network.target nss-lookup.target network-online.target
5+
Wants=network-online.target
56

67
[Service]
78
User=sing-box

release/local/sing-box.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Description=sing-box service
33
Documentation=https://sing-box.sagernet.org
44
After=network.target nss-lookup.target network-online.target
5+
Wants=network-online.target
56

67
[Service]
78
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH

0 commit comments

Comments
 (0)