Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Jul 2023 09:16:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 272282] freebsd-update tries to restart sshd although it is not running
Message-ID:  <bug-272282-227-VSqFfWc4kC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-272282-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-272282-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272282

--- 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 bran=
ch.

What ends up happening in rc.subr is that for all services that define a rc=
var,
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 th=
is
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 cod=
e.

I created a parch that omits the check for the status command.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272282-227-VSqFfWc4kC>