From nobody Sat Jul 01 09:16:30 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QtRQ63LzQz4kbrt for ; Sat, 1 Jul 2023 09:16:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QtRQ60ZSFz4SJq for ; Sat, 1 Jul 2023 09:16:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688202990; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y9X/meqcMfbcWaa4TIj7KbZUS9Qlde/5XlrtCGMdrew=; b=brNHtYCTeGjQx+ymhNSGxNpXsoGofyeXF14xMwBFE9mUsTEWCfLEp3nMcKl2CPacYJGU2a F3koevifqpb2oiDQxz4kiBoe1HXu4C9N6xUZUIT7HpY+umTitnISWrCX1I4RWTYOZJuEnZ BJ9X4OsS9VgTYaica7BYcMoFCF9t1msNnxEudlCwDSOiyMzeHkkt3ZU7BDXyvSiW34+0AD U4c7O5jKP3XHal4zlIoEYQLuNiaY61QAFztB6wSFvQR0rUrU5xb4V+SfKeS9peG7fPP9lL pbEpzJB4c8rwiWqWqoGry1KaEi966oxI8eGThfNocnY+r2SfL+/TGRiLmmpaxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688202990; a=rsa-sha256; cv=none; b=k2QVtRKk3iKzLvwOTdcGwihpuhPmvCLdsqpAC2+HovimoNQpF+5LOKGX/xwvqzs0J7RL5P XsgOm5esz4QHKFx8XdYgzSNcc7Ygb+2j3fIWWzVYlXylEQXpJiUM/8I8y7kXoLBznIUauD 8GC9376YuHPpBdcGyShDcVvnTradUPxXKYKb44QZq2bI92mFq+iAIMC34pSQ6jM6Zv/NfU ICezUFUvheLQbU0idHOs9QDcpLfuFAnNFVdode7t4p/3eTLxQM39oziHW7h9qoIBfEraVx x/aRSZb0FhRqmMVsXZocBQt5ZmHdSR3/h1GtLfF/wwQdrnkwVmvpUz80UZf8Yw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QtRQ56bzTzKxp for ; Sat, 1 Jul 2023 09:16:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3619GTVS051032 for ; Sat, 1 Jul 2023 09:16:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3619GTEo051031 for bugs@FreeBSD.org; Sat, 1 Jul 2023 09:16:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 272282] freebsd-update tries to restart sshd although it is not running Date: Sat, 01 Jul 2023 09:16:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tamelingdaniel@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272282 --- Comment #1 from Daniel Tameling --- 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.=