diff options
Diffstat (limited to 'debian/openssh-server.if-up')
-rw-r--r-- | debian/openssh-server.if-up | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/openssh-server.if-up b/debian/openssh-server.if-up index 3b3120c66..848535275 100644 --- a/debian/openssh-server.if-up +++ b/debian/openssh-server.if-up | |||
@@ -31,6 +31,10 @@ if [ ! -f /var/run/sshd.pid ] || \ | |||
31 | fi | 31 | fi |
32 | 32 | ||
33 | # We'd like to use 'reload' here, but it has some problems; see #502444. | 33 | # We'd like to use 'reload' here, but it has some problems; see #502444. |
34 | /etc/init.d/ssh restart >/dev/null 2>&1 || true | 34 | if [ -x /usr/sbin/invoke-rc.d ]; then |
35 | invoke-rc.d ssh restart >/dev/null 2>&1 || true | ||
36 | else | ||
37 | /etc/init.d/ssh restart >/dev/null 2>&1 || true | ||
38 | fi | ||
35 | 39 | ||
36 | exit 0 | 40 | exit 0 |