forked from pool/stunnel
update to 4.25, drop pidfile patch and fix init script
OBS-URL: https://build.opensuse.org/package/show/security:Stunnel/stunnel?expand=0&rev=34
This commit is contained in:
committed by
Git OBS Bridge
parent
10047bcce5
commit
21221f74a0
@@ -38,6 +38,7 @@ test -x $DAEMON_BIN || exit 5
|
||||
STUNNEL_RUN_CHROOTED=false
|
||||
DAEMON_PIDFILE=/var/run/stunnel.pid
|
||||
EXECUTABLES=
|
||||
CHROOT_PREFIX=
|
||||
while read -a line; do
|
||||
case ${line} in
|
||||
chroot) CHROOT_PREFIX=${line[2]}; STUNNEL_RUN_CHROOTED=true;;
|
||||
@@ -45,6 +46,7 @@ while read -a line; do
|
||||
exec) EXECUTABLES="$EXECUTABLES ${line[2]}";;
|
||||
esac;
|
||||
done < $STUNNEL_CONF
|
||||
DAEMON_PIDFILE="$CHROOT_PREFIX$DAEMON_PIDFILE"
|
||||
|
||||
# Shell functions sourced from /etc/rc.status:
|
||||
# rc_check check and set local and overall rc status
|
||||
@@ -75,6 +77,7 @@ rc_reset
|
||||
# with force-reload (in case signalling is not supported) are
|
||||
# considered a success.
|
||||
|
||||
# this seems to want to delete the pid file if it is empty
|
||||
test -e $DAEMON_PIDFILE && ! test -s $DAEMON_PIDFILE && rm $DAEMON_PIDFILE
|
||||
|
||||
case "$1" in
|
||||
|
Reference in New Issue
Block a user