]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
ssh: Ignore any errors when stopping daemon
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 13 Jan 2021 11:12:03 +0000 (11:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 13 Jan 2021 11:12:03 +0000 (11:12 +0000)
commit675c9ca558f3d354127c4746fed187b3ff4380cd
tree96cc2bd54e61e15d4048c2b09b6883aee5e44259
parent0b58804370ce8ee1350b85d30e1577e7dfaec90f
ssh: Ignore any errors when stopping daemon

The SSH init script only kills the main daemon which leads to any child
processes (for remaining connections) being untouched.

killproc returns 4 (unknown error) when not all processes were killed
which is not intended here. Therefore we ignore the error and do not
pause the shut down process for a minute.

Fixes: #12544
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/sshd