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