service_args is now an array

This commit is contained in:
2015-09-04 16:47:37 +03:00
parent 623cf0795e
commit 6ef5b97beb
47 changed files with 66 additions and 157 deletions

View File

@@ -4,13 +4,8 @@ cfg_sshd_cfgdir='/etc/ssh'
service_respawn=true
service_command='/usr/bin/sshd'
service_args="-D -f $cfg_sshd_cfgdir/sshd_config"
service_args=( -D -f "$cfg_sshd_cfgdir/sshd_config" )
sshd_genkeys() {
pre_start() {
[[ -e "/etc/ssh/ssh_host_key" ]] || { ssh-keygen -A; }
}
start() {
sshd_genkeys
watchman.start
}