From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 22 10:00:13 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 190C61065807 for ; Tue, 22 May 2012 10:00:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CC3378FC12 for ; Tue, 22 May 2012 10:00:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4MA0CF4066739 for ; Tue, 22 May 2012 10:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4MA0C4C066729; Tue, 22 May 2012 10:00:12 GMT (envelope-from gnats) Resent-Date: Tue, 22 May 2012 10:00:12 GMT Resent-Message-Id: <201205221000.q4MA0C4C066729@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yar Tikhiy Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C4A9310657A6 for ; Tue, 22 May 2012 09:59:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D517B8FC18 for ; Tue, 22 May 2012 09:59:58 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q4M9xwa8002129 for ; Tue, 22 May 2012 09:59:58 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q4M9xwcp002126; Tue, 22 May 2012 09:59:58 GMT (envelope-from nobody) Message-Id: <201205220959.q4M9xwcp002126@red.freebsd.org> Date: Tue, 22 May 2012 09:59:58 GMT From: Yar Tikhiy To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/168225: net-mgmt/nrpe2 : wrong owner of spool dir X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2012 10:00:13 -0000 >Number: 168225 >Category: ports >Synopsis: net-mgmt/nrpe2 : wrong owner of spool dir >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 22 10:00:12 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Yar Tikhiy >Release: 9.0-RELEASE >Organization: NA >Environment: nrpe-2.13 >Description: nrpe2, as installed by its port, runs as uid nagios and gid nagios once initialized. However, its pid file is written to /var/spool/nagios owned by root:wheel. When exiting, it can't remove its pidfile due to EPERM. Later it can refuse to start e.g. if the pid from the stale pidfile was taken by an unrelated process. >How-To-Repeat: Just reboot a system with nrpe2 enabled. See errors logged and nrpe not start. May 22 19:26:57 nocproj nrpe[955]: Caught SIGTERM - shutting down... May 22 19:26:57 nocproj nrpe[955]: Cannot remove pidfile '/var/spool/nagios/nrpe2.pid' - check your privileges. May 22 19:26:57 nocproj nrpe[955]: Daemon shutdown May 22 19:31:54 nocproj nrpe[1014]: Starting up daemon May 22 19:31:54 nocproj nrpe[1014]: There's already an NRPE server running (PID 955). Bailing out... >Fix: Chown ${NAGIOSDIR} to nagios:nagios after creating it in the do-install target using whatever port.mk magic it takes now. >Release-Note: >Audit-Trail: >Unformatted: