From owner-freebsd-ports-bugs@freebsd.org Wed Oct 18 12:14:31 2017 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 3B8BCE37455 for ; Wed, 18 Oct 2017 12:14:31 +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 28B6476D8B for ; Wed, 18 Oct 2017 12:14:31 +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 v9ICEUKR008625 for ; Wed, 18 Oct 2017 12:14:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 223087] [PATCH] net-mgmt/nagios4: use same lock_file as in nagios.in Date: Wed, 18 Oct 2017 12:14:30 +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: egypcio@googlemail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mat@FreeBSD.org 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: quoted-printable 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.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2017 12:14:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223087 Bug ID: 223087 Summary: [PATCH] net-mgmt/nagios4: use same lock_file as in nagios.in 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: egypcio@googlemail.com Flags: maintainer-feedback?(mat@FreeBSD.org) Keywords: patch Assignee: mat@FreeBSD.org Created attachment 187271 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187271&action= =3Dedit [PATCH] net-mgmt/nagios4: use same lock_file as in nagios.in (r449682) The current patch updates "net-mgmt/nagios4/Makefile" (r449682) in order to= use the set the Nagios' lock_file used by its rc script. Without the patch, a n= ew setup of Nagios under FreeBSD fails. # uname -iUKa FreeBSD freebsd11-nagios4 11.1-RELEASE-p1 FreeBSD 11.1-RELEASE-p1 #0: W= ed Aug 9 11:55:48 UTC 2017=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 GENE= RIC 1101001 1101001 # env ASSUME_ALWAYS_YES=3Dyes pkg bootstrap # pkg install -y nagios4 # cd /usr/local/etc/nagios/ # mv cgi.cfg-sample cgi.cfg # mv nagios.cfg-sample nagios.cfg # mv resource.cfg-sample resource.cfg # cd objects/ # mv commands.cfg-sample commands.cfg # mv contacts.cfg-sample contacts.cfg # mv localhost.cfg-sample localhost.cfg # mv printer.cfg-sample printer.cfg # mv switch.cfg-sample switch.cfg # mv templates.cfg-sample templates.cfg # mv timeperiods.cfg-sample timeperiods.cfg # mv windows.cfg-sample windows.cfg # ls -laRsh /usr/local/etc/nagios/ | grep -i sampl | wc 0 0 0 # ls -laRsh /usr/local/etc/nagios/ | grep -i cfg | wc 11 110 687 # sysrc nagios_enable=3DYES nagios_enable: -> YES # service nagios start Performing sanity check of nagios configuration: OK Starting nagios. /usr/local/etc/rc.d/nagios: WARNING: failed to start nagios # cat /var/spool/nagios/nagios.log [1508320974] Failed to obtain lock on file /var/run/nagios.lock: Permis= sion denied [1508320974] Bailing out due to errors encountered while attempting to daemonize... (PID=3D787) --=20 You are receiving this mail because: You are the assignee for the bug.=