From nobody Wed Aug 21 05:58:47 2024 X-Original-To: ports-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 4WpbHX0wsCz5TCwP for ; Wed, 21 Aug 2024 05:58:48 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WpbHW5yjMz4KjJ for ; Wed, 21 Aug 2024 05:58:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724219927; a=rsa-sha256; cv=none; b=YgmfSv82/xl/oejwBuFM7DuI5UhVmeVWACtwk+GRqbOEooqChm5v/SV0cgHZ/B2VpM0ZVo aWXQGQu0rifZtCwPwpBUe+LL79IP+Adepq64AEepN6kl/SPrEOJcN8puX6DYY4Rm4GWQmY rJ2ZOUUd6q0SWtOe74dls1hgr/Ls3lb0v7CZqEY9Ozi1ABkT0O2LKwDvNtTSVUDfv0A8RR SF4Uu38nulwm7Zs1sL1WS7whVX676MKVzyWfJBQgPJuYlYdZ8K1QC3NzS9GLSnO1DY1HLq njN2AKlzJ1q4ufEeO9NvIlo4r80afxuOtp/FaNOnz5pGZT0HEdBSEjc9TAhz3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724219927; 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; bh=VRKPQMH5WNjjc9MTsSkhjhMZyeB2aEhG4kDkW0O5kxg=; b=YmdF3gwt91f+RgpzGnkE/nO6LNhBBfjoRTp2hLDZPnFvf7Hims+K9iI+XhgNb+R7sGPKl/ BqJHJm3OApiy1B57L17pe+x6fzw0uFVtxAYNy2f8RM/YVcXhkvXmKHzkaFf2o8Lx79XvPs b5iK/0DTEPu5FvPhDDCWMNIW16hVlmVmaC1tUc8Ix5kXoea6O7496tM8mh782FwDnN4kcF dR0blY7gErYuXkUz3LsF2FTQFM53HQrr9Nqh+TkRjlWU7j3J4QEHYdUa/CMUFXqg97+5S5 wF8vRb5ek/XvjaICzrUwyihL2aYJnoDbypEaCx8WwpwvZ2k56bPSgZ1TWf+A7A== 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 4WpbHW52Y5zXtB for ; Wed, 21 Aug 2024 05:58:47 +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 47L5wlVK077091 for ; Wed, 21 Aug 2024 05:58:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47L5wlJ5077085 for ports-bugs@FreeBSD.org; Wed, 21 Aug 2024 05:58:47 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: ports-bugs@FreeBSD.org Subject: [Bug 280967] mail/dovecot: Silence warnings from rc script if dovecot_enable != YES Date: Wed, 21 Aug 2024 05:58:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: john@jmarshall.id.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ler@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280967 Bug ID: 280967 Summary: mail/dovecot: Silence warnings from rc script if dovecot_enable !=3D YES Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ler@FreeBSD.org Reporter: john@jmarshall.id.au Assignee: ler@FreeBSD.org Flags: maintainer-feedback?(ler@FreeBSD.org) Created attachment 252976 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252976&action= =3Dedit [PATCH] Silence rc script warning unless dovecot_enable =3D YES If the dovecot rc script cannot find a dovecot configuration file, it will complain - even if there are no dovecot_* variables defined in rc.conf (or friends). ---------------- rwsrv08# service dovecot rcvar =3D=3DError=3D=3D Config file /local/etc/dovecot/dovecot.conf does not exist. If this is a new installation, please create the config files as outlined in # pkg info -D dovecot # dovecot # dovecot_enable=3D"NO" # (default: "") ---------------- I don't see the point of complaining loudly about a missing configuration f= ile unless the user is trying to start the product. The attached patch skips emitting the missing file warning unless: - dovecot_enable =3D YES; or - $1 =3D onestart. [I build dovecot on the base system, package it, and install that package i= n a jail. I don't have it configured to run on the base system. It irritates me seeing that warning message whenever I boot the base system.] WITH PATCH APPLIED ------------------ rwsrv08# service dovecot rcvar # dovecot # dovecot_enable=3D"NO" # (default: "") rwsrv08#=20 rwsrv08#=20 rwsrv08# service dovecot onestart =3D=3DError=3D=3D Config file /local/etc/dovecot/dovecot.conf does not exist. If this is a new installation, please create the config files as outlined in # pkg info -D dovecot /usr/local/etc/rc.d/dovecot: WARNING: /local/etc/dovecot/dovecot.conf is not readable. /usr/local/etc/rc.d/dovecot: WARNING: failed precmd routine for dovecot rwsrv08#=20 ------------------ Thank you for maintaining this port. --=20 You are receiving this mail because: You are the assignee for the bug.=