summaryrefslogtreecommitdiff
path: root/community/sslh/sslh.rc
diff options
context:
space:
mode:
Diffstat (limited to 'community/sslh/sslh.rc')
-rw-r--r--community/sslh/sslh.rc34
1 files changed, 17 insertions, 17 deletions
diff --git a/community/sslh/sslh.rc b/community/sslh/sslh.rc
index 9c31435a0..456e122f4 100644
--- a/community/sslh/sslh.rc
+++ b/community/sslh/sslh.rc
@@ -4,31 +4,31 @@
. /etc/rc.d/functions
. /etc/conf.d/${0##*/}
-NAME=sslh
DAEMON=/usr/bin/sslh
PID=$(pidof -o %PPID $DAEMON)
+DAEMON_OPTS="--background $DAEMON_OPTS"
case "$1" in
- start)
- stat_busy "Starting $NAME daemon"
- [[ ! $PID ]] && $DAEMON $DAEMON_OPTS && add_daemon $NAME && stat_done && exit 0
- stat_fail
- ;;
+ start)
+ stat_busy "Starting ${0##*/} daemon"
+ [[ ! $PID ]] && $DAEMON $DAEMON_OPTS && add_daemon ${0##*/} && stat_done && exit 0
+ stat_fail
+ ;;
stop)
- stat_busy "Stopping $NAME daemon"
- [[ $PID ]] && kill $PID &> /dev/null && rm_daemon $NAME && stat_done && exit 0
- stat_fail
- ;;
+ stat_busy "Stopping ${0##*/} daemon"
+ [[ $PID ]] && kill $PID &> /dev/null && rm_daemon ${0##*/} && stat_done && exit 0
+ stat_fail
+ ;;
restart)
- $0 stop
- $0 start
- exit 0
- ;;
+ $0 stop
+ $0 start
+ exit 0
+ ;;
*)
- echo "usage: ${0##*/} {start|stop|restart}" >&2
- ;;
+ echo "usage: ${0##*/} {start|stop|restart}" >&2
+ ;;
esac
exit 1
-# vim:set ts=2 sw=2 ft=sh noet:
+# vim:set ts=2 sw=2 ft=sh et: