]> git.pld-linux.org Git - packages/openssh.git/commitdiff
- proof-of-concept upstart event-based startup
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 7 May 2010 08:47:23 +0000 (08:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    opensshd.upstart -> 1.1

opensshd.upstart [new file with mode: 0644]

diff --git a/opensshd.upstart b/opensshd.upstart
new file mode 100644 (file)
index 0000000..c9cb212
--- /dev/null
@@ -0,0 +1,25 @@
+
+start on pld.network-started and started SERVICE=syslog
+stop on pld.shutdown-started
+
+respawn
+
+console output
+
+script
+       . /etc/rc.d/init.d/functions
+       . /etc/sysconfig/network
+
+       if [ ! -s /etc/ssh/ssh_host_key ] ; then
+               /etc/rc.d/init.d/sshd init
+       fi
+
+       if is_yes "$IPV4_NETWORKING" && is_no "$IPV6_NETWORKING"; then
+               OPTIONS="$OPTIONS -4"
+       fi
+       if is_yes "$IPV6_NETWORKING" && is_no "$IPV4_NETWORKING"; then
+               OPTIONS="$OPTIONS -6"
+       fi
+
+       exec /usr/sbin/sshd -D $OPTIONS
+end script
This page took 0.396324 seconds and 4 git commands to generate.