log_script_name "$0 $*"
-SSHD="/usr/sbin/sshd -4"
+DAEMON="/usr/sbin/sshd"
+DAEMON_DESC="SSH server"
+DAEMON_OPTS="-4"
# Check if SSH server is desired
if [ "x${SSH_SERVER_ENA}" != "xyes" -a "x${SSH_SERVER_ENA}" != "xYes" -a "x${SSH_SERVER_ENA}" != "xYES" ]; then
if [ $? -ne 0 ]; then
exit ${EXIT_CODE_FAILURE}
else
- loadproc ${SSHD}
+ loadproc ${DAEMON} ${DAEMON_OPTS}
fi
}
# See how we were called
case "$1" in
start)
- cmd_run_log_box_warn "Starting sshd" sshd_start
+ cmd_run_log_box_warn "${DAEMON_DESC} start" sshd_start
;;
stop)
- cmd_run_log_box_warn "Stopping sshd" killproc sshd
+ cmd_run_log_box_warn "${DAEMON_DESC} stop" killproc ${DAEMON}
;;
reload)
- reloadproc sshd
+ reloadproc ${DAEMON}
;;
restart)
;;
status)
- statusproc sshd
+ statusproc ${DAEMON}
;;
*)