Changeset View
Changeset View
Standalone View
Standalone View
etc/rc.d/sshd
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
sshd_precmd() | sshd_precmd() | ||||
{ | { | ||||
run_rc_command keygen | run_rc_command keygen | ||||
run_rc_command configtest | run_rc_command configtest | ||||
} | } | ||||
load_rc_config $name | load_rc_config $name | ||||
if checkyesno sshd_supervise | |||||
then | |||||
procname="daemon" | |||||
pidfile="/var/run/sshd-daemon.pid" | |||||
sshd_daemon="-r -P ${pidfile}" | |||||
sshd_flags="${sshd_flags} -D" | |||||
fi | |||||
run_rc_command "$1" | run_rc_command "$1" |