diff options
author | root <root@rshg054.dnsready.net> | 2012-05-10 00:01:51 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-05-10 00:01:51 +0000 |
commit | 1adfdd111d570a6dfc66543a2858d9554c73e7a7 (patch) | |
tree | a1c3647bf2208871299e0a1419d6e0b64e1c82b7 /community/sslh/sslh.rc | |
parent | 065cf8163398f8da177e9f09f5a5e97a063ca5c5 (diff) |
Thu May 10 00:01:50 UTC 2012
Diffstat (limited to 'community/sslh/sslh.rc')
-rw-r--r-- | community/sslh/sslh.rc | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/community/sslh/sslh.rc b/community/sslh/sslh.rc index 9c31435a0..cd5397cad 100644 --- a/community/sslh/sslh.rc +++ b/community/sslh/sslh.rc @@ -4,31 +4,30 @@ . /etc/rc.d/functions . /etc/conf.d/${0##*/} -NAME=sslh DAEMON=/usr/bin/sslh PID=$(pidof -o %PPID $DAEMON) 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: |