summaryrefslogtreecommitdiff
path: root/debian/openssh-server.ssh.upstart
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2012-11-01 11:20:08 +0000
committerColin Watson <cjwatson@debian.org>2012-11-01 11:20:08 +0000
commitb01a179cef6b9ddb82acf8a154d184c124a0ecdb (patch)
tree41f0abe2059a6780ff2a20c729d77431175da6de /debian/openssh-server.ssh.upstart
parent41e9d122631d7783293085b8f7f2b2fcbef12b50 (diff)
Add an Upstart job (not currently used by default in Debian).
Diffstat (limited to 'debian/openssh-server.ssh.upstart')
-rw-r--r--debian/openssh-server.ssh.upstart27
1 files changed, 27 insertions, 0 deletions
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