From: Peter Palfrader Date: Tue, 24 May 2011 09:55:25 +0000 (+0200) Subject: Do it differently X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=78d9609794123c96e794ff5201a1aa3e7695ab5a;p=mirror%2Fdsa-puppet.git Do it differently --- diff --git a/modules/stunnel4/files/etc-init.d-stunnel4 b/modules/stunnel4/files/etc-init.d-stunnel4 index fc17c6df6..5ace7cb4a 100755 --- a/modules/stunnel4/files/etc-init.d-stunnel4 +++ b/modules/stunnel4/files/etc-init.d-stunnel4 @@ -20,10 +20,14 @@ DEFAULTPIDFILE="/var/run/stunnel4.pid" DAEMON=/usr/bin/stunnel4 NAME=stunnel DESC="SSL tunnels" -FILES="${STUNNEL_FILES:-/etc/stunnel/*.conf}" OPTIONS="" ENABLED=0 +FILES="/etc/stunnel/*.conf" +if [ -n "${2-:}" ] && [ -e "/etc/stunnel/$2.conf" ]; then + FILES="/etc/stunnel/$2.conf}" +fi + get_pids() { local file=$1 if test -f $file; then