]> git.pld-linux.org Git - packages/openssh.git/blobdiff - opensshd.upstart
- useful bits from ubuntu
[packages/openssh.git] / opensshd.upstart
index 07e9b0daff6b0c6c2d54260813e3d2a3aa95a83a..ea93559b656cea8f7317c73a0021f708d680a611 100644 (file)
@@ -1,10 +1,16 @@
 
-start on pld.network-started and started SERVICE=syslog
+start on pld.network-started and started SERVICE_syslog=y and started random
 stop on pld.shutdown-started
 
 respawn
-
+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
@@ -23,5 +29,3 @@ script
 
        exec /usr/sbin/sshd -D $OPTIONS
 end script
-
-# vi: ft=upstart
This page took 0.100808 seconds and 4 git commands to generate.