]> git.pld-linux.org Git - packages/openssh.git/blob - opensshd.upstart
- proof-of-concept upstart event-based startup
[packages/openssh.git] / opensshd.upstart
1
2 start on pld.network-started and started SERVICE=syslog
3 stop on pld.shutdown-started
4
5 respawn
6
7 console output
8
9 script
10         . /etc/rc.d/init.d/functions
11         . /etc/sysconfig/network
12
13         if [ ! -s /etc/ssh/ssh_host_key ] ; then
14                 /etc/rc.d/init.d/sshd init
15         fi
16
17         if is_yes "$IPV4_NETWORKING" && is_no "$IPV6_NETWORKING"; then
18                 OPTIONS="$OPTIONS -4"
19         fi
20         if is_yes "$IPV6_NETWORKING" && is_no "$IPV4_NETWORKING"; then
21                 OPTIONS="$OPTIONS -6"
22         fi
23
24         exec /usr/sbin/sshd -D $OPTIONS
25 end script
This page took 0.161389 seconds and 4 git commands to generate.