forked from Spark/ssm-services
17 lines
271 B
Plaintext
Executable File
17 lines
271 B
Plaintext
Executable File
#!/usr/bin/env watchman
|
|
|
|
cfg_sshd_cfgdir='/etc/ssh'
|
|
|
|
service_respawn=true
|
|
service_command='/bin/sshd'
|
|
service_args="-D -f $cfg_sshd_cfgdir/sshd_config"
|
|
|
|
sshd_genkeys() {
|
|
[[ -e "/etc/ssh/ssh_host_key" ]] || { ssh-keygen -A; }
|
|
}
|
|
|
|
start() {
|
|
sshd_genkeys
|
|
watchman.start
|
|
}
|