Package: stunnel4 Version: 3:4.29-1 Severity: wishlist Tags: patch Please allow restarting only selected stunnels using the init script, like this:
weasel@heininen:~$ sudo env -i /etc/init.d/stunnel4 restart Restarting SSL tunnels: [stopped: /etc/stunnel/puppet-ekeyd.conf] [stopped: /etc/stunnel/test.conf] [Started: /etc/stunnel/puppet-ekeyd.conf] [Started: /etc/stunnel/test.conf] stunnel. weasel@heininen:~$ sudo env -i /etc/init.d/stunnel4 restart test Restarting SSL tunnels: [stopped: /etc/stunnel/test.conf] [Started: /etc/stunnel/test.conf] stunnel. weasel@heininen:~$ sudo env -i /etc/init.d/stunnel4 restart blubb /etc/stunnel/blubb.conf does not exist. --- /etc/init.d/stunnel4 2009-12-09 05:09:48.000000000 +0100 +++ files/etc-init.d-stunnel4 2011-05-24 12:00:22.515274416 +0200 @@ -14,10 +20,20 @@ DAEMON=/usr/bin/stunnel4 NAME=stunnel DESC="SSL tunnels" -FILES="/etc/stunnel/*.conf" OPTIONS="" ENABLED=0 +if [ -n "${2:-}" ]; then + if [ -e "/etc/stunnel/$2.conf" ]; then + FILES="/etc/stunnel/$2.conf" + else + echo >&2 "/etc/stunnel/$2.conf does not exist." + exit 1 + fi +else + FILES="/etc/stunnel/*.conf" +fi + get_pids() { local file=$1 if test -f $file; then @@ -101,7 +117,7 @@ ;; *) N=/etc/init.d/$NAME - echo "Usage: $N {start|stop|force-reload|restart}" >&2 + echo "Usage: $N {start|stop|force-reload|restart} [<stunnel instance>]" >&2 exit 1 ;; esac This also requires commenting out the FILES="/etc/stunnel/*.conf" in /etc/default/stunnel4. Cheers, weasel -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org