diff options
author | Colin Watson <cjwatson@debian.org> | 2012-11-01 11:20:08 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2012-11-01 11:20:08 +0000 |
commit | b01a179cef6b9ddb82acf8a154d184c124a0ecdb (patch) | |
tree | 41f0abe2059a6780ff2a20c729d77431175da6de /debian/openssh-server.ssh.upstart | |
parent | 41e9d122631d7783293085b8f7f2b2fcbef12b50 (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.upstart | 27 |
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 | |||
5 | description "OpenSSH server" | ||
6 | |||
7 | start on filesystem or runlevel [2345] | ||
8 | stop on runlevel [!2345] | ||
9 | |||
10 | respawn | ||
11 | respawn limit 10 5 | ||
12 | umask 022 | ||
13 | |||
14 | # 'sshd -D' leaks stderr and confuses things in conjunction with 'console log' | ||
15 | console none | ||
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 -D | ||