ssm-services/init.d/sshd
2015-09-04 16:47:37 +03:00

12 lines
233 B
Plaintext
Executable File

#!/usr/bin/env watchman
cfg_sshd_cfgdir='/etc/ssh'
service_respawn=true
service_command='/usr/bin/sshd'
service_args=( -D -f "$cfg_sshd_cfgdir/sshd_config" )
pre_start() {
[[ -e "/etc/ssh/ssh_host_key" ]] || { ssh-keygen -A; }
}