projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use start-stop-daemon for stopping/restarting stunnel4
[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
e2f442e
..
7bc871a
100755
(executable)
--- a/
modules/stunnel4/files/etc-init.d-stunnel4
+++ b/
modules/stunnel4/files/etc-init.d-stunnel4
@@
-23,6
+23,8
@@
DESC="SSL tunnels"
OPTIONS=""
ENABLED=0
OPTIONS=""
ENABLED=0
+ulimit -n 4096
+
if [ -n "${2:-}" ]; then
if [ -e "/etc/stunnel/$2.conf" ]; then
FILES="/etc/stunnel/$2.conf"
if [ -n "${2:-}" ]; then
if [ -e "/etc/stunnel/$2.conf" ]; then
FILES="/etc/stunnel/$2.conf"
@@
-74,9
+76,9
@@
killdaemons()
{
for file in $FILES; do
PROCLIST=`get_pids $file`
{
for file in $FILES; do
PROCLIST=`get_pids $file`
- if [ "$PROCLIST" ] && kill -0 $PROCLIST 2>/dev/null; then
- kill $PROCLIST
-
echo -n "[stopped: $file] "
+ for p in $PROCLIST; do
+ start-stop-daemon --stop --retry 30 --pid "$p"
+ echo -n "[stopped: $file] "
fi
done
}
fi
done
}