]> git.pld-linux.org Git - packages/openssh.git/blame - opensshd.upstart
- useful bits from ubuntu
[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; }
13end script
1ab91246
JK
14
15script
16 . /etc/rc.d/init.d/functions
17 . /etc/sysconfig/network
18
19 if [ ! -s /etc/ssh/ssh_host_key ] ; then
20 /etc/rc.d/init.d/sshd init
21 fi
22
23 if is_yes "$IPV4_NETWORKING" && is_no "$IPV6_NETWORKING"; then
24 OPTIONS="$OPTIONS -4"
25 fi
26 if is_yes "$IPV6_NETWORKING" && is_no "$IPV4_NETWORKING"; then
27 OPTIONS="$OPTIONS -6"
28 fi
29
713f1330 30 exec /usr/sbin/sshd -D $OPTIONS
1ab91246 31end script
This page took 0.030111 seconds and 4 git commands to generate.