shadowsocks-rust/shadowsocks-rust-client.service
Hillwood Yang 36a443f444 - Fix start failure by systemd
* Make sure /etc/shadowsocks can be read by shadowsocks user
  * Create the PID file under /run/shadowsocks

OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=35
2025-01-06 13:25:35 +00:00

29 lines
753 B
Desktop File

[Unit]
Description=Daemon to start Shadowsocks-rust-client
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-rust-client.pid
ExecStart=/usr/bin/sslocal --log-without-time -c /etc/shadowsocks/shadowsocks-rust.json --tcp-fast-open
Restart=on-failure
User=shadowsocks
Group=shadowsocks
[Install]
WantedBy=multi-user.target