about summary refs log tree commit diff
path: root/services/sshd
diff options
context:
space:
mode:
Diffstat (limited to 'services/sshd')
-rwxr-xr-xservices/sshd/run5
l---------services/sshd/supervise1
2 files changed, 6 insertions, 0 deletions
diff --git a/services/sshd/run b/services/sshd/run
new file mode 100755
index 0000000..06f36ea
--- /dev/null
+++ b/services/sshd/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+echo "Starting sshd..."
+/usr/bin/ssh-keygen -A # Will generate host keys if they don't already exist
+exec /usr/sbin/sshd -D
diff --git a/services/sshd/supervise b/services/sshd/supervise
new file mode 120000
index 0000000..1ea2704
--- /dev/null
+++ b/services/sshd/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.sshd
\ No newline at end of file