]>
Commit | Line | Data |
---|---|---|
74f7fb64 | 1 | start on pld.network-started and started SERVICE_syslog=y and started random |
1ab91246 JK |
2 | stop on pld.shutdown-started |
3 | ||
4 | respawn | |
9753dd96 | 5 | oom -16 |
1ab91246 JK |
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 | ||
713f1330 | 23 | exec /usr/sbin/sshd -D $OPTIONS |
1ab91246 | 24 | end script |