|
51
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
1 |
# ssh - OpenBSD Secure Shell server
|
2 |
#
|
|
3 |
# The OpenSSH server provides secure shell access to the system.
|
|
4 |
||
5 |
description "OpenSSH server" |
|
6 |
||
7 |
start on filesystem |
|
8 |
stop on runlevel S |
|
9 |
||
10 |
expect fork |
|
11 |
respawn
|
|
|
56
by Colin Watson
* Always set child processes' OOM adjustment to 0, since Upstart will have |
12 |
respawn limit 10 5 |
|
51
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
13 |
umask 022 |
14 |
# replaces SSHD_OOM_ADJUST in /etc/default/ssh
|
|
15 |
oom never |
|
16 |
||
17 |
pre-start script |
|
18 |
test -x /usr/sbin/sshd || { stop; exit 0; } |
|
19 |
test -e /etc/ssh/sshd_not_to_be_run && { stop; exit 0; } |
|
20 |
test -c /dev/null || { stop; exit 0; } |
|
21 |
||
22 |
mkdir -p -m0755 /var/run/sshd |
|
23 |
end script |
|
24 |
||
25 |
# if you used to set SSHD_OPTS in /etc/default/ssh, you can change the
|
|
26 |
# 'exec' line here instead
|
|
27 |
exec /usr/sbin/sshd |