diff options
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | debian/systemd/ssh.service | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 976ec4c42..d87e26fb6 100644 --- a/debian/changelog +++ b/debian/changelog | |||
@@ -1,3 +1,10 @@ | |||
1 | openssh (1:7.5p1-6) UNRELEASED; urgency=medium | ||
2 | |||
3 | * Test configuration before starting or reloading sshd under systemd | ||
4 | (closes: #865770). | ||
5 | |||
6 | -- Colin Watson <cjwatson@debian.org> Mon, 26 Jun 2017 10:09:28 +0100 | ||
7 | |||
1 | openssh (1:7.5p1-5) unstable; urgency=medium | 8 | openssh (1:7.5p1-5) unstable; urgency=medium |
2 | 9 | ||
3 | * Upload to unstable. | 10 | * Upload to unstable. |
diff --git a/debian/systemd/ssh.service b/debian/systemd/ssh.service index 3df8c6426..c75e59057 100644 --- a/debian/systemd/ssh.service +++ b/debian/systemd/ssh.service | |||
@@ -5,7 +5,9 @@ ConditionPathExists=!/etc/ssh/sshd_not_to_be_run | |||
5 | 5 | ||
6 | [Service] | 6 | [Service] |
7 | EnvironmentFile=-/etc/default/ssh | 7 | EnvironmentFile=-/etc/default/ssh |
8 | ExecStartPre=/usr/sbin/sshd -t | ||
8 | ExecStart=/usr/sbin/sshd -D $SSHD_OPTS | 9 | ExecStart=/usr/sbin/sshd -D $SSHD_OPTS |
10 | ExecReload=/usr/sbin/sshd -t | ||
9 | ExecReload=/bin/kill -HUP $MAINPID | 11 | ExecReload=/bin/kill -HUP $MAINPID |
10 | KillMode=process | 12 | KillMode=process |
11 | Restart=on-failure | 13 | Restart=on-failure |