Files
gentoo-zh/net-proxy/shadowsocks-rust/files/shadowsocks-rust_at.service
T
Anonymous 7cbe381a65 net-proxy/shadowsocks-rust: add
drop net-proxy/shadowsocks-rust-bin
profiles/updates

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Anonymous <458892+aieu@users.noreply.github.com>
2022-06-03 19:17:56 +08:00

21 lines
542 B
Desktop File

[Unit]
Description=A Rust port of shadowsocks.
After=network.target
[Service]
DynamicUser=yes
CacheDirectory=shadowsocks-rust/%i
LogsDirectory=shadowsocks-rust/%i
RuntimeDirectory=shadowsocks-rust/%i
StateDirectory=shadowsocks-rust/%i
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
ExecStart=/usr/bin/sslocal -c /etc/shadowsocks-rust/%i.json --log-without-time
Restart=on-failure
LimitNPROC=10000
LimitNOFILE=1000000
[Install]
WantedBy=multi-user.target