ssm-services/services/sshd
fbt d85b1945e9 kek
Signed-off-by: fbt <fbt@fleshless.org>
2017-12-10 20:44:17 +03:00

15 lines
246 B
Plaintext
Executable File

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