[Bug 272282] freebsd-update tries to restart sshd although it is not running
Date: Sat, 01 Jul 2023 09:16:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272282 --- Comment #1 from Daniel Tameling <tamelingdaniel@gmail.com> --- I think there are two ways to fix this: 1) freebsd-update could use service sshd onestatus 2) change rc.subr so that it always executes the status branch. What ends up happening in rc.subr is that for all services that define a rcvar, there is a check whether the service is enabled. If this fails, it tells us to enable the service in rc.conf and returns early with an exit code of 0. One can circumvent this check with onestatus, but I think for the status command this check doesn't really make sense. A little later we would be told that the service is not running anyway, this time returning with a non-zero exit code. I created a parch that omits the check for the status command. -- You are receiving this mail because: You are the assignee for the bug.