From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 17 15:50:03 2008 Return-Path: Delivered-To: freebsd-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 4D416106567C for ; Wed, 17 Sep 2008 15:50:03 +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 28C518FC25 for ; Wed, 17 Sep 2008 15:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m8HFo36v091357 for ; Wed, 17 Sep 2008 15:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m8HFo3Yb091356; Wed, 17 Sep 2008 15:50:03 GMT (envelope-from gnats) Resent-Date: Wed, 17 Sep 2008 15:50:03 GMT Resent-Message-Id: <200809171550.m8HFo3Yb091356@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tyler Aviss Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDB6E1065674 for ; Wed, 17 Sep 2008 15:41:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id CB9898FC26 for ; Wed, 17 Sep 2008 15:41:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m8HFfSED054308 for ; Wed, 17 Sep 2008 15:41:28 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m8HFfSCs054307; Wed, 17 Sep 2008 15:41:28 GMT (envelope-from nobody) Message-Id: <200809171541.m8HFfSCs054307@www.freebsd.org> Date: Wed, 17 Sep 2008 15:41:28 GMT From: Tyler Aviss To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/127444: nagios-statd port RC script fails to log a valid PID, cannot detect running instance X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2008 15:50:03 -0000 >Number: 127444 >Category: misc >Synopsis: nagios-statd port RC script fails to log a valid PID, cannot detect running instance >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 17 15:50:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Tyler Aviss >Release: 6.2-RELEASE >Organization: >Environment: FreeBSD sweb1 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Wed Jul 4 12:12:47 EDT 2007 root@sweb1:/usr/obj/usr/src/sys/SMP-DL360 i386 >Description: nagios-statd does not appear to by default create a pidfile (or not in the location the rc script expects). Starting nagios-statd via /usr/local/etc/rc.d/nagiosstatd will therefore launch the daemon, but not create a PIDfile. This in turn means that attempting to start or restart the daemon via the RC script will fail, as it does not detect a running instance. >How-To-Repeat: $ /var/run$ /usr/local/etc/rc.d/nagiosstatd start Starting nagiosstatd. $ ps auxwww | grep statd root 68885 0.0 0.2 5140 3696 ?? Ss 11:30AM 0:00.04 python /usr/local/sbin/nagios-statd $ ls /var/run/nagiosstatd.pid ls: /var/run/nagiosstatd.pid: No such file or directory $ /var/run$ /usr/local/etc/rc.d/nagiosstatd restart nagiosstatd not running? Starting nagiosstatd. Port 1040 is already in use. Unable to bind - exiting. Manually adding a "-P /var/run/nagiosstatd.d" will create the pidfile, but a stop/restart will still complain that the daemon is not running (even when it is, and the pidfile contains a valid process-id for statd) >Fix: >Release-Note: >Audit-Trail: >Unformatted: