diff options
Diffstat (limited to 'debian/openssh-server.if-up')
-rw-r--r-- | debian/openssh-server.if-up | 5 |
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. |
36 | if [ -d /run/systemd/system ]; then | 36 | if [ -d /run/systemd/system ]; then |
37 | action=reload | 37 | systemctl reload --no-block ssh.service >/dev/null 2>&1 || true |
38 | else | 38 | else |
39 | action=restart | 39 | invoke-rc.d ssh restart >/dev/null 2>&1 || true |
40 | fi | 40 | fi |
41 | invoke-rc.d ssh $action >/dev/null 2>&1 || true | ||
42 | 41 | ||
43 | exit 0 | 42 | exit 0 |