Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

start ssh after networking

  • Loading branch information...
commit 89c42937c451e6fef61105b31b7e2d6dd42f75fe 1 parent 4d2cf36
Joshua Sierles authored August 26, 2011

Showing 1 changed file with 26 additions and 0 deletions. Show diff stats Hide diff stats

  1. 26  ssh/files/default/ssh.conf
26  ssh/files/default/ssh.conf
... ...
@@ -0,0 +1,26 @@
  1
+# ssh - OpenBSD Secure Shell server
  2
+#
  3
+# The OpenSSH server provides secure shell access to the system.
  4
+
  5
+description     "OpenSSH server"
  6
+
  7
+start on filesystem and net-device-up IFACE=eth0
  8
+stop on runlevel [!2345]
  9
+
  10
+respawn
  11
+respawn limit 10 5
  12
+umask 022
  13
+# replaces SSHD_OOM_ADJUST in /etc/default/ssh
  14
+oom never
  15
+
  16
+pre-start script
  17
+    test -x /usr/sbin/sshd || { stop; exit 0; }
  18
+    test -e /etc/ssh/sshd_not_to_be_run && { stop; exit 0; }
  19
+    test -c /dev/null || { stop; exit 0; }
  20
+
  21
+    mkdir -p -m0755 /var/run/sshd
  22
+end script
  23
+
  24
+# if you used to set SSHD_OPTS in /etc/default/ssh, you can change the
  25
+# 'exec' line here instead
  26
+exec /usr/sbin/sshd -D

0 notes on commit 89c4293

Please sign in to comment.
Something went wrong with that request. Please try again.