ssm-services/init.d/sshd
fbt 2205f72a2e watchman -> ssm
Signed-off-by: fbt <fbt@fleshless.org>
2017-07-13 16:09:42 +03:00

16 lines
261 B
Plaintext
Executable File

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