From nobody Tue Jan 24 14:32:45 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 4P1Tvx6XtBz3bcDf for ; Tue, 24 Jan 2023 14:32:45 +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 4P1Tvx4D4tz4LYL for ; Tue, 24 Jan 2023 14:32:45 +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=1674570765; 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=1iQFpSRdEjcACkr91svPAhdQ39x4nZZ5ugjAW4hR0F8=; b=bAzSwYxj9p/r7L/j5KXzcHmP2WaV1kZBf/HGd68TrC1oYMGm7iSb1Ua4wuxZAlOM+InJSv yFgxQyRXLdYeBzmtcjmZEilZKR/RhIQBN0hoTnw0a9f8phNVXtkH51SewRk1w20stz8lJ6 CMvIu59gNDRZJVU6qPmfdrOkBuV7qstxJszCeZRVkOFBSeZM4Md1Ju3uJOZXvC2t38loDE UsqR6dHqZiTnKcMdbHz+NDtpZ2j9yogiwGO4Zgm0u7NyIuuNW21BSnEBpcNMznfwVA91ZR UptmCe4FDcVwm8OtAhxdJT+EBL2JA7f8FdQ7jUo67XQ9XYaql0h5gaHWFbosNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674570765; a=rsa-sha256; cv=none; b=YuIhnBKYn4wqCiJTW7TZ4r0oxTryy6+NoHFCc1aV+aj8H4h7Mo79Yk+ArFZ7SfGCA8Q1ai n0GOnLXX+vXiaSV+EPplFgrcCJL1kEyOR17XcP7qayagKSIn94dmdI5y4YW62z6Q0etdjb miQz6MW+JmVGbS2RCoOcvtwhGV9Bw2+ZUspqW2pSl6EB40j40wNu70TK2jFNzZNYGi+cy/ dFDozWRq5gMCv+J++jfHsF/fMIltRi5BS4lIQPnnevce+Nl0PLuKtNg1PB12uyU/xr9Rg/ SijPEggoGuP0NyE5+Dm1uBu3F+lFHidy2C/Oe1xFMiEZ29jO4TB/ROwIvTGEwg== 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 4P1Tvx3Gxhz1C3l for ; Tue, 24 Jan 2023 14:32:45 +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 30OEWjJB017927 for ; Tue, 24 Jan 2023 14:32:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30OEWjbQ017926 for bugs@FreeBSD.org; Tue, 24 Jan 2023 14:32:45 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 194347] Return an error when rc service is not enabled Date: Tue, 24 Jan 2023 14:32:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: fernape@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Works As Intended X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fernape@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status cc resolution 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=3D194347 Fernando Apestegu=C3=ADa changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |fernape@FreeBSD.org Status|New |Closed CC| |fernape@FreeBSD.org Resolution|--- |Works As Intended --- Comment #1 from Fernando Apestegu=C3=ADa --- rc is returning 0 because rc is not failing. This is one of the possible outputs considered by the rc script and it is not an error. Compare that with this piece of code in which a force start is issued but somehow (the script doesn't know why), it fails: if ! /etc/rc.d/${_depend} forcestart; then=20 warn "Unable to force ${_depend}. It may already be running= ." return 1 fi --=20 You are receiving this mail because: You are the assignee for the bug.=