2021-11-15 10:39:26 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Daemon to start Shadowsocks-rust-server
|
|
|
|
Wants=network-online.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2023-06-20 08:48:48 +02: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
|
2021-11-15 10:39:26 +01:00
|
|
|
Type=forking
|
|
|
|
PIDFile=/var/run/shadowsocks-rust-server.pid
|
2023-06-20 08:48:48 +02:00
|
|
|
ExecStart=/usr/bin/ssserver --log-without-time -c /etc/shadowsocks/shadowsocks-rust.json --tcp-fast-open
|
2021-11-15 10:39:26 +01:00
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|