watchman -> ssm

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2017-07-13 16:09:42 +03:00
parent 3953df0dba
commit 2205f72a2e
71 changed files with 198 additions and 212 deletions

View File

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