From 68a57a806556854196b4e8407c829e74785f9834 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 8 Oct 2011 14:34:22 +0000 Subject: [PATCH] - useful bits from ubuntu Changed files: opensshd.upstart -> 1.7 --- opensshd.upstart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/opensshd.upstart b/opensshd.upstart index af4f793..ea93559 100644 --- a/opensshd.upstart +++ b/opensshd.upstart @@ -1,9 +1,16 @@ + start on pld.network-started and started SERVICE_syslog=y and started random stop on pld.shutdown-started respawn -oom -16 +respawn limit 10 5 console output +oom never + +pre-start script + test -x /usr/sbin/sshd || { stop; exit 0; } + test -c /dev/null || { stop; exit 0; } +end script script . /etc/rc.d/init.d/functions -- 2.44.0