2020-09-06 13:57:23 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Daemon to start Shadowsocks-libev-tunnel
|
|
|
|
Wants=network-online.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2021-11-22 11:12:27 +01:00
|
|
|
# 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
|
2020-09-06 13:57:23 +02:00
|
|
|
Type=forking
|
|
|
|
PIDFile=/var/run/shadowsocks-libev-tunnel@%i.pid
|
|
|
|
ExecStart=/usr/bin/ss-tunnel -c /etc/shadowsocks/%i.json -f /var/run/shadowsocks-libev-tunnel@%i.pid -u --fast-open
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|