projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
schroot has to be on hold on wheezy
[mirror/dsa-puppet.git]
/
modules
/
stunnel4
/
files
/
etc-init.d-stunnel4
diff --git
a/modules/stunnel4/files/etc-init.d-stunnel4
b/modules/stunnel4/files/etc-init.d-stunnel4
index
8549c40
..
e2f442e
100755
(executable)
--- a/
modules/stunnel4/files/etc-init.d-stunnel4
+++ b/
modules/stunnel4/files/etc-init.d-stunnel4
@@
-1,4
+1,10
@@
#! /bin/sh -e
#! /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
### 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"
DAEMON=/usr/bin/stunnel4
NAME=stunnel
DESC="SSL tunnels"
-FILES="/etc/stunnel/*.conf"
OPTIONS=""
ENABLED=0
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
get_pids() {
local file=$1
if test -f $file; then
@@
-101,7
+117,7
@@
case "$1" in
;;
*)
N=/etc/init.d/$NAME
;;
*)
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
exit 1
;;
esac