summarylogtreecommitdiffstats
path: root/shadowsocks-libev@.service
diff options
context:
space:
mode:
Diffstat (limited to 'shadowsocks-libev@.service')
-rw-r--r--shadowsocks-libev@.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/shadowsocks-libev@.service b/shadowsocks-libev@.service
new file mode 100644
index 000000000000..c54eb08602a2
--- /dev/null
+++ b/shadowsocks-libev@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Shadowsocks-Libev Client Service
+After=network-online.target
+
+[Service]
+Type=simple
+User=nobody
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+ExecStart=/usr/bin/ss-local -c /etc/shadowsocks/%i.json
+
+[Install]
+WantedBy=multi-user.target