]> git.pld-linux.org Git - packages/openssh.git/blame - opensshd.upstart
add missing backslash
[packages/openssh.git] / opensshd.upstart
CommitLineData
68a57a80 1
74f7fb64 2start on pld.network-started and started SERVICE_syslog=y and started random
1ab91246
JK
3stop on pld.shutdown-started
4
5respawn
68a57a80 6respawn limit 10 5
1ab91246 7console output
68a57a80
ER
8oom never
9
10pre-start script
11 test -x /usr/sbin/sshd || { stop; exit 0; }
12 test -c /dev/null || { stop; exit 0; }
5308c1f8
ER
13
14 if [ ! -s /etc/ssh/ssh_host_key \
15 -o ! -s /etc/ssh/ssh_host_rsa_key \
16 -o ! -s /etc/ssh/ssh_host_dsa_key \
17 -o ! -s /etc/ssh/ssh_host_ecdsa_key \
18 ]; then
19 # call gen keys if any of the files above is missing or empty
20 /etc/rc.d/init.d/sshd ssh_gen_keys
21 fi
68a57a80 22end script
1ab91246
JK
23
24script
25 . /etc/rc.d/init.d/functions
26 . /etc/sysconfig/network
27
1ab91246
JK
28 if is_yes "$IPV4_NETWORKING" && is_no "$IPV6_NETWORKING"; then
29 OPTIONS="$OPTIONS -4"
30 fi
31 if is_yes "$IPV6_NETWORKING" && is_no "$IPV4_NETWORKING"; then
32 OPTIONS="$OPTIONS -6"
33 fi
34
713f1330 35 exec /usr/sbin/sshd -D $OPTIONS
1ab91246 36end script
This page took 0.065067 seconds and 4 git commands to generate.