From owner-freebsd-ports-bugs@freebsd.org Fri Aug 21 21:32:44 2015 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DEF0B9C0427 for ; Fri, 21 Aug 2015 21:32:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B0F901B8D for ; Fri, 21 Aug 2015 21:32:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t7LLWiCr022863 for ; Fri, 21 Aug 2015 21:32:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 202556] [PATCH] net-mgmt/nagios4: nagios_enable not set in rc script Date: Fri, 21 Aug 2015 21:32:44 +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: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: John.Marshall@riverwillow.com.au X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mat@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2015 21:32:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202556 Bug ID: 202556 Summary: [PATCH] net-mgmt/nagios4: nagios_enable not set in rc script Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: mat@FreeBSD.org Reporter: John.Marshall@riverwillow.com.au Flags: maintainer-feedback?(mat@FreeBSD.org) Assignee: mat@FreeBSD.org Keywords: patch Created attachment 160191 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=160191&action=edit Set default value "NO" for nagios_enable in rc script Comments at the beginning of the port's rc script say that nagios_enable is set to NO by default. This patch makes it so. The rc script does not set a value for nagios_enable at all, so if the variable is not set in the system rc.conf, the rc system emits the following WARNING message during startup or shutdown if the port is installed but not configured: /usr/local/etc/rc.d/nagios: WARNING: $nagios_enable is not set properly - see rc.conf(5). This patch modifies the port's rc script to set nagios_enable to "NO" if the variable is empty or not set in rc.conf. -- You are receiving this mail because: You are the assignee for the bug.