This commit is contained in:
2013-09-29 03:32:39 +04:00
parent 946b77d028
commit 7af48c15d4
24 changed files with 256 additions and 0 deletions

14
init.d/sshd Executable file
View File

@@ -0,0 +1,14 @@
#!/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
}