mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-27 03:03:43 +00:00
Merge pull request #2182 from edsgerlin/fix-systemd
Add `CAP_NET_BIND_SERVICE` to `shadowsocks-libev.service`
This commit is contained in:
+1
@@ -17,6 +17,7 @@ After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
ExecStart=/usr/bin/ss-local -c /etc/shadowsocks-libev/%i.json
|
||||
|
||||
[Install]
|
||||
|
||||
+1
@@ -17,6 +17,7 @@ After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
||||
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
||||
ExecStart=/usr/bin/ss-redir -c /etc/shadowsocks-libev/%i.json
|
||||
|
||||
[Install]
|
||||
|
||||
+1
@@ -17,6 +17,7 @@ After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
ExecStart=/usr/bin/ss-server -c /etc/shadowsocks-libev/%i.json
|
||||
|
||||
[Install]
|
||||
|
||||
+1
@@ -17,6 +17,7 @@ After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
ExecStart=/usr/bin/ss-tunnel -c /etc/shadowsocks-libev/%i.json
|
||||
|
||||
[Install]
|
||||
|
||||
Vendored
+2
@@ -15,6 +15,8 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
EnvironmentFile=/etc/default/shadowsocks-libev
|
||||
User=nobody
|
||||
Group=nogroup
|
||||
|
||||
Reference in New Issue
Block a user