]> git.pld-linux.org Git - packages/openssh.git/blob - opensshd.upstart
bc9a884a725793d740533a3bcb924b2b94c820c8
[packages/openssh.git] / opensshd.upstart
1
2 start on pld.network-started and started SERVICE=syslog and started random
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
26
27 # vi: ft=upstart
This page took 0.032708 seconds and 2 git commands to generate.