diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-06-21 12:18:30 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-06-21 12:18:30 +0300 |
commit | 31684bbc19b57842dfb8285f69ab3d19f9d0f0b5 (patch) | |
tree | 9fdea5fc4fe6929b92492c6da7929b742ce260d8 /debian/openssh-server.ssh.upstart | |
download | openssh-debian.tar.gz |
Imported openssh 1:7.4p1-10debian/7.4p1-10debian
Diffstat (limited to 'debian/openssh-server.ssh.upstart')
-rw-r--r-- | debian/openssh-server.ssh.upstart | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/openssh-server.ssh.upstart b/debian/openssh-server.ssh.upstart new file mode 100644 index 0000000..9b0e954 --- /dev/null +++ b/debian/openssh-server.ssh.upstart @@ -0,0 +1,29 @@ +# ssh - OpenBSD Secure Shell server +# +# The OpenSSH server provides secure shell access to the system. + +description "OpenSSH server" + +start on runlevel [2345] +stop on runlevel [!2345] + +respawn +respawn limit 10 5 +umask 022 + +env SSH_SIGSTOP=1 +expect stop + +# 'sshd -D' leaks stderr and confuses things in conjunction with 'console log' +console none + +pre-start script + test -x /usr/sbin/sshd || { stop; exit 0; } + test -e /etc/ssh/sshd_not_to_be_run && { stop; exit 0; } + + mkdir -p -m0755 /run/sshd +end script + +# if you used to set SSHD_OPTS in /etc/default/ssh, you can change the +# 'exec' line here instead +exec /usr/sbin/sshd -D |