2013-09-28 23:32:39 +00:00
|
|
|
#!/usr/bin/env watchman
|
|
|
|
|
|
|
|
cfg_sshd_cfgdir='/etc/ssh'
|
|
|
|
|
|
|
|
service_command='/bin/sshd'
|
|
|
|
service_args="-f $cfg_sshd_cfgdir/sshd_config"
|
|
|
|
service_pidfile='/run/sshd.pid'
|
|
|
|
|
|
|
|
sshd_genkeys() {
|
|
|
|
[[ -e "/etc/ssh/ssh_host_key" ]] || { ssh-keygen -A; }
|
|
|
|
watchman.start
|
|
|
|
}
|
2014-04-04 11:40:00 +00:00
|
|
|
|
|
|
|
start() { sshd_genkeys; }
|