7 .
/etc
/conf.d
/$daemon_name
9 PIDFILE
="/var/run/sslh.pid"
12 cat /var
/run
/$daemon_name.pid
17 stat_busy
"Starting $daemon_name daemon"
20 if [ -z "$PID" ]; then
21 [ -f /var
/run
/$daemon_name.pid
] && rm -f /var
/run
/$daemon_name.pid
23 $daemon_name -u nobody
-p ${LISTEN} -s ${SSH} -l ${SSL} -P /var
/run
/$daemon_name.pid
29 echo $
(get_pid
) > /var
/run
/$daemon_name.pid
30 add_daemon
$daemon_name
40 stat_busy
"Stopping $daemon_name daemon"
43 [ ! -z "$PID" ] && kill $PID &> /dev
/null
49 rm -f /var
/run
/$daemon_name.pid
&> /dev
/null
50 rm_daemon
$daemon_name
62 echo "usage: $0 {start|stop|restart}"