summaryrefslogtreecommitdiff
path: root/debian/systemd/ssh.service
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2017-06-26 10:18:26 +0100
committerColin Watson <cjwatson@debian.org>2017-06-26 10:18:26 +0100
commitd4181e15b03171d1363cd9d7a50b209697a80b01 (patch)
tree9f0e4c5f517c2d416f6f8a7ddfa352d36296cbd1 /debian/systemd/ssh.service
parent68a1b981fa2e4ad262ea413ef155273ed90be201 (diff)
Test configuration before starting or reloading sshd under systemd (closes: #865770).
Diffstat (limited to 'debian/systemd/ssh.service')
-rw-r--r--debian/systemd/ssh.service2
1 files changed, 2 insertions, 0 deletions
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]
7EnvironmentFile=-/etc/default/ssh 7EnvironmentFile=-/etc/default/ssh
8ExecStartPre=/usr/sbin/sshd -t
8ExecStart=/usr/sbin/sshd -D $SSHD_OPTS 9ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
10ExecReload=/usr/sbin/sshd -t
9ExecReload=/bin/kill -HUP $MAINPID 11ExecReload=/bin/kill -HUP $MAINPID
10KillMode=process 12KillMode=process
11Restart=on-failure 13Restart=on-failure