29 lines
795 B
SYSTEMD
29 lines
795 B
SYSTEMD
|
[Unit]
|
||
|
Description=Daemon to start Shadowsocks-libev-server
|
||
|
Wants=network-online.target
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
# added automatically, for details please see
|
||
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=true
|
||
|
PrivateDevices=true
|
||
|
ProtectHostname=true
|
||
|
ProtectClock=true
|
||
|
ProtectKernelTunables=true
|
||
|
ProtectKernelModules=true
|
||
|
ProtectKernelLogs=true
|
||
|
ProtectControlGroups=true
|
||
|
RestrictRealtime=true
|
||
|
# end of automatic additions
|
||
|
Type=forking
|
||
|
PIDFile=/run/shadowsocks/shadowsocks-libev-server.pid
|
||
|
ExecStart=/usr/bin/ss-server -c /etc/shadowsocks/shadowsocks-libev-config.json -f /run/shadowsocks/shadowsocks-libev-server.pid -u --fast-open
|
||
|
Restart=on-failure
|
||
|
User=shadowsocks
|
||
|
Group=shadowsocks
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|