aboutsummaryrefslogtreecommitdiff
path: root/network/sslh/rc.sslh
diff options
context:
space:
mode:
Diffstat (limited to 'network/sslh/rc.sslh')
-rw-r--r--network/sslh/rc.sslh16
1 files changed, 10 insertions, 6 deletions
diff --git a/network/sslh/rc.sslh b/network/sslh/rc.sslh
index 74c95ca56d..e375c67b0b 100644
--- a/network/sslh/rc.sslh
+++ b/network/sslh/rc.sslh
@@ -5,30 +5,34 @@
# Start/stop/restart the sslh daemon.
#
+PATH="/bin:/sbin:/usr/bin:/usr/sbin"
+export PATH
+
NAME="sslh"
-config="/etc/${NAME}/${NAME}.cfg"
pidfile="/var/run/${NAME}.pid"
+source /etc/default/$NAME || exit 1
+
start() {
if [[ -z $(pidof -o %PPID $NAME) ]]; then
rm $pidfile &>/dev/null
fi
if [ ! -f $pidfile ]; then
- echo "Start services: $NAME"
- ${NAME} -F $config >/dev/null 2>&1
+ echo "Starting SSL multiplexer: $NAME $SSLH_OPTS"
+ $NAME $SSLH_OPTS >/dev/null 2>&1
else
- echo "Services $NAME already running."
+ echo "Service $NAME already running."
fi
}
stop() {
if [ -f $pidfile ]; then
- echo "Stop services: $NAME"
+ echo "Stopping $NAME"
kill $(cat $pidfile) >/dev/null 2>&1
rm $pidfile &>/dev/null
else
- echo "Services $NAME is not running."
+ echo "Service $NAME is not running."
fi
}