summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog1
-rw-r--r--debian/openssh-server.ssh.upstart27
2 files changed, 28 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index ae8f5c984..64d7df278 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ openssh (1:6.1p1-2) UNRELEASED; urgency=low
7 - Drop openssh-blacklist and openssh-blacklist-extra to Suggests. It's 7 - Drop openssh-blacklist and openssh-blacklist-extra to Suggests. It's
8 been long enough since the relevant vulnerability that we shouldn't 8 been long enough since the relevant vulnerability that we shouldn't
9 need these installed by default nowadays. 9 need these installed by default nowadays.
10 - Add an Upstart job (not currently used by default in Debian).
10 11
11 -- Colin Watson <cjwatson@debian.org> Fri, 28 Sep 2012 17:54:42 +0100 12 -- Colin Watson <cjwatson@debian.org> Fri, 28 Sep 2012 17:54:42 +0100
12 13
diff --git a/debian/openssh-server.ssh.upstart b/debian/openssh-server.ssh.upstart
new file mode 100644
index 000000000..d8342b9c1
--- /dev/null
+++ b/debian/openssh-server.ssh.upstart
@@ -0,0 +1,27 @@
1# ssh - OpenBSD Secure Shell server
2#
3# The OpenSSH server provides secure shell access to the system.
4
5description "OpenSSH server"
6
7start on filesystem or runlevel [2345]
8stop on runlevel [!2345]
9
10respawn
11respawn limit 10 5
12umask 022
13
14# 'sshd -D' leaks stderr and confuses things in conjunction with 'console log'
15console none
16
17pre-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
23end script
24
25# if you used to set SSHD_OPTS in /etc/default/ssh, you can change the
26# 'exec' line here instead
27exec /usr/sbin/sshd -D