mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 20:16:49 +02:00
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>
This commit is contained in:
@@ -37,7 +37,7 @@ case "$1" in
|
||||
|
||||
stop)
|
||||
boot_mesg "Stopping SSH Server..."
|
||||
killproc -p "/var/run/sshd.pid" /usr/sbin/sshd
|
||||
killproc -p "/var/run/sshd.pid" /usr/sbin/sshd || true
|
||||
;;
|
||||
|
||||
reload)
|
||||
|
||||
Reference in New Issue
Block a user