Accepting request 1120406 from server:proxy
(forwarded request 1120405 from hillwood) OBS-URL: https://build.opensuse.org/request/show/1120406 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-libev?expand=0&rev=20
This commit is contained in:
commit
d194418563
@ -21,6 +21,8 @@ Type=forking
|
|||||||
PIDFile=/var/run/shadowsocks-libev-client.pid
|
PIDFile=/var/run/shadowsocks-libev-client.pid
|
||||||
ExecStart=/usr/bin/ss-local -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-client.pid -u --fast-open
|
ExecStart=/usr/bin/ss-local -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-client.pid -u --fast-open
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
User=shadowsocks
|
||||||
|
Group=shadowsocks
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -21,6 +21,8 @@ Type=forking
|
|||||||
PIDFile=/var/run/shadowsocks-libev-client@%i.pid
|
PIDFile=/var/run/shadowsocks-libev-client@%i.pid
|
||||||
ExecStart=/usr/bin/ss-local -c /etc/shadowsocks/%i.json -f /var/run/shadowsocks-libev-client@%i.pid -u --fast-open
|
ExecStart=/usr/bin/ss-local -c /etc/shadowsocks/%i.json -f /var/run/shadowsocks-libev-client@%i.pid -u --fast-open
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
User=shadowsocks
|
||||||
|
Group=shadowsocks
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -21,6 +21,8 @@ Type=forking
|
|||||||
PIDFile=/var/run/shadowsocks-libev-manager.pid
|
PIDFile=/var/run/shadowsocks-libev-manager.pid
|
||||||
ExecStart=/usr/bin/ss-manager -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-manager.pid -u --fast-open
|
ExecStart=/usr/bin/ss-manager -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-manager.pid -u --fast-open
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
User=shadowsocks
|
||||||
|
Group=shadowsocks
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -21,6 +21,8 @@ Type=forking
|
|||||||
PIDFile=/var/run/shadowsocks-libev-nat.pid
|
PIDFile=/var/run/shadowsocks-libev-nat.pid
|
||||||
ExecStart=/usr/bin/ss-nat -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-nat.pid -u --fast-open
|
ExecStart=/usr/bin/ss-nat -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-nat.pid -u --fast-open
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
User=shadowsocks
|
||||||
|
Group=shadowsocks
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -21,6 +21,8 @@ Type=forking
|
|||||||
PIDFile=/var/run/shadowsocks-libev-nat@%i.pid
|
PIDFile=/var/run/shadowsocks-libev-nat@%i.pid
|
||||||
ExecStart=/usr/bin/ss-nat -c /etc/shadowsocks/%i.json -f /var/run/shadowsocks-libev-nat@%i.pid -u --fast-open
|
ExecStart=/usr/bin/ss-nat -c /etc/shadowsocks/%i.json -f /var/run/shadowsocks-libev-nat@%i.pid -u --fast-open
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
User=shadowsocks
|
||||||
|
Group=shadowsocks
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -21,6 +21,8 @@ Type=forking
|
|||||||
PIDFile=/var/run/shadowsocks-libev-redir.pid
|
PIDFile=/var/run/shadowsocks-libev-redir.pid
|
||||||
ExecStart=/usr/bin/ss-redir -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-redir.pid -u --fast-open
|
ExecStart=/usr/bin/ss-redir -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-redir.pid -u --fast-open
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
User=shadowsocks
|
||||||
|
Group=shadowsocks
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -21,6 +21,8 @@ Type=forking
|
|||||||
PIDFile=/var/run/shadowsocks-libev-redir@%i.pid
|
PIDFile=/var/run/shadowsocks-libev-redir@%i.pid
|
||||||
ExecStart=/usr/bin/ss-redir -c /etc/shadowsocks/%i.json -f /var/run/shadowsocks-libev-redir@%i.pid -u --fast-open
|
ExecStart=/usr/bin/ss-redir -c /etc/shadowsocks/%i.json -f /var/run/shadowsocks-libev-redir@%i.pid -u --fast-open
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
User=shadowsocks
|
||||||
|
Group=shadowsocks
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -21,6 +21,8 @@ Type=forking
|
|||||||
PIDFile=/var/run/shadowsocks-libev-server.pid
|
PIDFile=/var/run/shadowsocks-libev-server.pid
|
||||||
ExecStart=/usr/bin/ss-server -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-server.pid -u --fast-open
|
ExecStart=/usr/bin/ss-server -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-server.pid -u --fast-open
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
User=shadowsocks
|
||||||
|
Group=shadowsocks
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -21,6 +21,8 @@ Type=forking
|
|||||||
PIDFile=/var/run/shadowsocks-libev-server@%i.pid
|
PIDFile=/var/run/shadowsocks-libev-server@%i.pid
|
||||||
ExecStart=/usr/bin/ss-server -c /etc/shadowsocks/%i.json -f /var/run/shadowsocks-libev-server@%i.pid -u --fast-open
|
ExecStart=/usr/bin/ss-server -c /etc/shadowsocks/%i.json -f /var/run/shadowsocks-libev-server@%i.pid -u --fast-open
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
User=shadowsocks
|
||||||
|
Group=shadowsocks
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -21,6 +21,8 @@ Type=forking
|
|||||||
PIDFile=/var/run/shadowsocks-libev-tunnel.pid
|
PIDFile=/var/run/shadowsocks-libev-tunnel.pid
|
||||||
ExecStart=/usr/bin/ss-tunnel -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-tunnel.pid -u --fast-open
|
ExecStart=/usr/bin/ss-tunnel -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-tunnel.pid -u --fast-open
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
User=shadowsocks
|
||||||
|
Group=shadowsocks
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -21,6 +21,8 @@ Type=forking
|
|||||||
PIDFile=/var/run/shadowsocks-libev-tunnel@%i.pid
|
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
|
ExecStart=/usr/bin/ss-tunnel -c /etc/shadowsocks/%i.json -f /var/run/shadowsocks-libev-tunnel@%i.pid -u --fast-open
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
User=shadowsocks
|
||||||
|
Group=shadowsocks
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 24 06:50:28 UTC 2023 - Hillwood Yang <hillwood@opensuse.org>
|
||||||
|
|
||||||
|
- Fix boo#1216372 and boo#1216373, run systemd service as a dedicated user and group
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 8 11:30:20 UTC 2023 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
|
Mon May 8 11:30:20 UTC 2023 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
|
||||||
|
|
||||||
|
@ -57,6 +57,7 @@ BuildRequires: asciidoc
|
|||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
BuildRequires: pkgconfig(systemd)
|
BuildRequires: pkgconfig(systemd)
|
||||||
|
Requires(pre): shadow
|
||||||
Recommends: shadowsocks-v2ray-plugin
|
Recommends: shadowsocks-v2ray-plugin
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{?systemd_ordering}
|
%{?systemd_ordering}
|
||||||
@ -153,6 +154,10 @@ ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcshadowsocks-libev-tunnel@
|
|||||||
%service_add_pre %{name}-nat@.service
|
%service_add_pre %{name}-nat@.service
|
||||||
%service_add_pre %{name}-redir@.service
|
%service_add_pre %{name}-redir@.service
|
||||||
%service_add_pre %{name}-tunnel@.service
|
%service_add_pre %{name}-tunnel@.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
|
%post
|
||||||
%service_add_post %{name}-server.service
|
%service_add_post %{name}-server.service
|
||||||
@ -166,6 +171,7 @@ ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcshadowsocks-libev-tunnel@
|
|||||||
%service_add_post %{name}-nat@.service
|
%service_add_post %{name}-nat@.service
|
||||||
%service_add_post %{name}-redir@.service
|
%service_add_post %{name}-redir@.service
|
||||||
%service_add_post %{name}-tunnel@.service
|
%service_add_post %{name}-tunnel@.service
|
||||||
|
chown root:shadowsocks %{_sysconfdir}/shadowsocks -R
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun %{name}-server.service
|
%service_del_preun %{name}-server.service
|
||||||
|
Loading…
Reference in New Issue
Block a user