SHA256
1
0
forked from pool/stunnel

Accepting request 851865 from home:asvetter:branches:security:Stunnel

- Remove pidfile from service file fixes start bug: boo#1178533

OBS-URL: https://build.opensuse.org/request/show/851865
OBS-URL: https://build.opensuse.org/package/show/security:Stunnel/stunnel?expand=0&rev=120
This commit is contained in:
Andreas Vetter 2020-12-11 19:52:27 +00:00 committed by Git OBS Bridge
parent cca48af767
commit 347e382da0
3 changed files with 6 additions and 16 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 30 14:36:45 UTC 2020 - Andreas Vetter <vetter@physik.uni-wuerzburg.de>
- Remove pidfile from service file fixes start bug: boo#1178533
-------------------------------------------------------------------
Sun Oct 11 18:05:36 UTC 2020 - Michael Ströder <michael@stroeder.com>

View File

@ -1,14 +0,0 @@
[Unit]
Description=TLS tunnel for network daemons
Wants=network-online.target
After=syslog.target network-online.target
[Service]
ExecStart=/usr/sbin/stunnel
Type=forking
# stunnel is chrooted, so pidpath is combination of 2 configfile options
PIDFile=/var/lib/stunnel/var/run/stunnel.pid
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -50,7 +50,6 @@ Source1: https://www.stunnel.org/downloads/%{name}-%{version}.tar.gz.asc
Source2: stunnel.keyring
Source3: sysconfig.syslog-stunnel
Source4: stunnel.rc
Source5: stunnel.service
Source7: stunnel.README
BuildRequires: libopenssl-devel
BuildRequires: tcpd-devel
@ -111,7 +110,7 @@ mkdir -p %{buildroot}%{_docdir}/stunnel/tools
mkdir -p %{buildroot}%{_fillupdir}
cp -p %{SOURCE3} %{buildroot}%{_fillupdir}/
%if 0%{?has_systemd}
install -D -m 0644 %{_sourcedir}/stunnel.service %{buildroot}/%{_unitdir}/stunnel.service
install -D -m 0644 %{buildroot}%{_docdir}/stunnel/examples/stunnel.service %{buildroot}/%{_unitdir}/stunnel.service
ln -s service %{buildroot}%{_sbindir}/rcstunnel
%else
mkdir -p %{buildroot}%{_initddir}/