1
0
forked from ports/opt

stunnel: adjust rc-script for latest start-stop-daemon

This commit is contained in:
Juergen Daubert 2019-03-31 13:25:01 +02:00
parent 8c7af6d6dc
commit 1fa352368c
3 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/cR6tYjAoBwDZUn9nsJn7M1j2WeEhjEBCC1qrAvKlkY36XAyQyPKVul2gtT6nbkrWDRBCjVuh8wXir3IvnO4NwY=
SHA256 (Pkgfile) = 4b4193271042da8af18cd5ef2e070b37eabcc3b5e5ca374cacba8499057ec823
RWSE3ohX2g5d/bO6gzFb+cTkv8qvWszcDyDmvig65X2EeNNTu9akQQD9CdN4Nn55FK2VKIETbRMAgDbzKHcbGBMZJAeBH8m6PAg=
SHA256 (Pkgfile) = 62a5c51bdab7cf769bd8d8d60f00bfa3521d4f817457f9b5679901d84dfb5e32
SHA256 (.footprint) = f83e6abdfdb94cb68ef512ba0ef5d19a1e180887f2cf7c92d2916af0ec7b1e51
SHA256 (stunnel-5.50.tar.gz) = 951d92502908b852a297bd9308568f7c36598670b84286d3e05d4a3a550c0149
SHA256 (stunnel.conf) = ef09041fd68530a6029826678eb22db30a80d8a77308ee361b12aa466f7daa28
SHA256 (stunnel) = 23cba7fd8f9dd71988cf2b12d52a8b994e740b4386c5c094d7e95ed3dd7d3fb1
SHA256 (stunnel) = c6e5c2bcfd87b709bbc24b5c24a603b43bc9440e125eeaf283a11daadc78cbd7

View File

@ -5,7 +5,7 @@
name=stunnel
version=5.50
release=1
release=2
source=(https://www.stunnel.org/downloads/$name-$version.tar.gz \
$name.conf $name)

View File

@ -5,6 +5,7 @@
SSD=/sbin/start-stop-daemon
PROG=/usr/sbin/stunnel
NAME=stunnel
PID=/var/run/stunnel/stunnel.pid
CFG=/etc/stunnel.conf
@ -19,14 +20,14 @@ start)
$SSD --start --pidfile $PID --exec $PROG -- $CFG
;;
stop)
$SSD --stop --retry 10 --pidfile $PID
$SSD --stop --retry 10 --name $NAME --pidfile $PID
;;
restart)
$0 stop
$0 start
;;
status)
$SSD --status --pidfile $PID
$SSD --status --name $NAME --pidfile $PID
case $? in
0) echo "$PROG is running with pid $(cat $PID)" ;;
1) echo "$PROG is not running but the pid file $PID exists" ;;