summaryrefslogtreecommitdiff
path: root/debian/openssh-server.if-up
diff options
context:
space:
mode:
Diffstat (limited to 'debian/openssh-server.if-up')
-rw-r--r--debian/openssh-server.if-up5
1 files changed, 2 insertions, 3 deletions
diff --git a/debian/openssh-server.if-up b/debian/openssh-server.if-up
index dd05ea51c..915284cc6 100644
--- a/debian/openssh-server.if-up
+++ b/debian/openssh-server.if-up
@@ -34,10 +34,9 @@ fi
34# the other hand, repeated restarts of ssh make systemd unhappy 34# the other hand, repeated restarts of ssh make systemd unhappy
35# (#756547/#757822), so use reload in that case. 35# (#756547/#757822), so use reload in that case.
36if [ -d /run/systemd/system ]; then 36if [ -d /run/systemd/system ]; then
37 action=reload 37 systemctl reload --no-block ssh.service >/dev/null 2>&1 || true
38else 38else
39 action=restart 39 invoke-rc.d ssh restart >/dev/null 2>&1 || true
40fi 40fi
41invoke-rc.d ssh $action >/dev/null 2>&1 || true
42 41
43exit 0 42exit 0