forked from pool/shadowsocks-rust
Accepting request 1119864 from home:hillwood:branches:server:proxy
- Fix boo#1216372 and boo#1216373 OBS-URL: https://build.opensuse.org/request/show/1119864 OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=15
This commit is contained in:
parent
59fd49901b
commit
a177f76828
@ -21,6 +21,8 @@ Type=forking
|
||||
PIDFile=/var/run/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
|
||||
|
@ -21,6 +21,8 @@ Type=forking
|
||||
PIDFile=/var/run/shadowsocks-rust-manager.pid
|
||||
ExecStart=/usr/bin/ssmanager --log-without-time -c /etc/shadowsocks/shadowsocks-rust.json --tcp-fast-open
|
||||
Restart=on-failure
|
||||
User=shadowsocks
|
||||
Group=shadowsocks
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -21,6 +21,8 @@ Type=forking
|
||||
PIDFile=/var/run/shadowsocks-rust-server.pid
|
||||
ExecStart=/usr/bin/ssserver --log-without-time -c /etc/shadowsocks/shadowsocks-rust.json --tcp-fast-open
|
||||
Restart=on-failure
|
||||
User=shadowsocks
|
||||
Group=shadowsocks
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 24 14:38:46 UTC 2023 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
- Fix boo#1216372 and boo#1216373
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 25 14:02:49 UTC 2023 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
|
@ -33,6 +33,7 @@ BuildRequires: cargo
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: systemd-rpm-macros
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
Requires(pre): shadow
|
||||
Recommends: shadowsocks-v2ray-plugin
|
||||
# ExcludeArch: ppc ppc64 ppc64le s390 s390x
|
||||
%{?systemd_ordering}
|
||||
@ -76,11 +77,16 @@ ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-manager
|
||||
%service_add_pre %{name}-client.service
|
||||
%service_add_pre %{name}-server.service
|
||||
%service_add_pre %{name}-manager.service
|
||||
getent group shadowsocks >/dev/null || %{_sbindir}/groupadd --system shadowsocks
|
||||
getent passwd shadowsocks >/dev/null || %{_sbindir}/useradd --system -c "shadowsocks User" \
|
||||
-d %{_localstatedir}/shadowsocks -m -g shadowsocks -s %{_sbindir}/nologin \
|
||||
shadowsocks
|
||||
|
||||
%post
|
||||
%service_add_post %{name}-client.service
|
||||
%service_add_post %{name}-server.service
|
||||
%service_add_post %{name}-manager.service
|
||||
chown shadowsocks:shadowsocks %{_sysconfdir}/shadowsocks -R
|
||||
|
||||
%preun
|
||||
%service_del_preun %{name}-client.service
|
||||
|
Loading…
Reference in New Issue
Block a user