From 78d9609794123c96e794ff5201a1aa3e7695ab5a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 24 May 2011 11:55:25 +0200 Subject: [PATCH] Do it differently --- modules/stunnel4/files/etc-init.d-stunnel4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.20.1