X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fstunnel4%2Ffiles%2Fetc-init.d-stunnel4;h=c4bb5ad6979f1f21c464cd3ff644d0d09dbecae8;hb=d66236434edcc0673248f49e18ea4facf20243bd;hp=8549c40bdb59c1f5443208f6eb7c3ad0a7ac6444;hpb=e01a265d60e6aaa77a44dc832bfdb71ed506baf3;p=mirror%2Fdsa-puppet.git diff --git a/modules/stunnel4/files/etc-init.d-stunnel4 b/modules/stunnel4/files/etc-init.d-stunnel4 index 8549c40bd..c4bb5ad69 100755 --- a/modules/stunnel4/files/etc-init.d-stunnel4 +++ b/modules/stunnel4/files/etc-init.d-stunnel4 @@ -1,4 +1,10 @@ #! /bin/sh -e + +## +## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. +## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git +## + ### BEGIN INIT INFO # Provides: stunnel4 # Required-Start: $local_fs $remote_fs @@ -14,10 +20,20 @@ DEFAULTPIDFILE="/var/run/stunnel4.pid" 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