X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fbootscripts%2Fsshd;h=1d3ab9fa8804917135985bd9da9ffd87bdef5984;hb=0fefb94d78f31fdf9a469a14711dccf2f8ac0141;hp=026f04da17dddc7021e3f0ab4bb2d95d2a034935;hpb=f09e4ad6942319f2d272034fc6e15dc6159dee37;p=hvlinux.git diff --git a/stage3/bootscripts/sshd b/stage3/bootscripts/sshd index 026f04d..1d3ab9f 100755 --- a/stage3/bootscripts/sshd +++ b/stage3/bootscripts/sshd @@ -9,7 +9,9 @@ source /etc/sysconfig/network/network-parameters 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 @@ -44,22 +46,22 @@ sshd_start() { 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) @@ -69,7 +71,7 @@ case "$1" in ;; status) - statusproc sshd + statusproc ${DAEMON} ;; *)