summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-04-03 18:39:50 +0200
committermh <mh@immerda.ch>2010-04-03 18:39:50 +0200
commit634b02802f6b12925b5818144ed81e06dbc1a0c6 (patch)
tree0629a4cc5c7fbf773683c3418c1e010a5cebdc5b
parentfd2b292ab1ab38a93a745b9599d89880e782693c (diff)
add pidfile to check status
status failed often due to a missing pidfile. Add a hardcoded pidfile to improve the status query. Note: in general the status script should be improved! So see this rather as a quickfix.
-rw-r--r--files/CentOS/stunnel.init4
1 files changed, 3 insertions, 1 deletions
diff --git a/files/CentOS/stunnel.init b/files/CentOS/stunnel.init
index 9b4b798..023568b 100644
--- a/files/CentOS/stunnel.init
+++ b/files/CentOS/stunnel.init
@@ -57,6 +57,8 @@ fi
# Path to the lock file.
#
LOCK_FILE=/var/lock/subsys/stunnel
+# pidfile to be used
+pidfile=/var/run/stunnel/stunnel.pid
#====================================================================
@@ -126,7 +128,7 @@ case "$1" in
fi
;;
status)
- status stunnel
+ status -p $pidfile stunnel
RETVAL=$?
;;
*)