forked from Spark/ssm-services
15 lines
278 B
Plaintext
15 lines
278 B
Plaintext
|
#!/usr/bin/env watchman
|
||
|
|
||
|
watchman.depends network
|
||
|
|
||
|
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
|
||
|
}
|