7 PID
=$
(pidof
-o %PPID
/usr
/sbin
/sslh
)
8 PIDFILE
="/var/run/sslh.pid"
12 stat_busy
"Starting sslh daemon"
14 touch /var
/run
/sslh.pid
15 chown nobody
${PIDFILE}
17 [[ -z $PID ]] && sslh
-p ${LISTEN} --ssh ${SSH} --ssl ${SSL}
18 if [[ $?
-gt 0 ]]; then
28 stat_busy
"Stopping sslh daemon"
31 [[ ! -z $PID ]] && kill $PID &> /dev
/null
33 if [[ $?
-gt 0 ]]; then
50 stat_busy
'Checking sslh status'
55 echo "usage: $0 {start|stop|restart|status}"