summaryrefslogtreecommitdiff
path: root/debian/openssh-server.if-up
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-07-26 22:11:09 +0200
committerColin Watson <cjwatson@debian.org>2016-07-29 02:36:17 +0100
commit09ce0380e2a396617147b1274012c097ce2e407d (patch)
tree4adf1e19c018d4712711d21103bdac281bf074e5 /debian/openssh-server.if-up
parent9269812fada73fdd8553d4f6822ce9377ade4c2d (diff)
debian/openssh-server.if-up: Don't block on a finished reload of openssh.service
This avoids deadlocking with restarting networking. LP: #1584393
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