From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Oct 29 13:50:32 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10D1D16A5E0 for ; Sun, 29 Oct 2006 13:50:32 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E633243D96 for ; Sun, 29 Oct 2006 13:50:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k9TDoO1H070871 for ; Sun, 29 Oct 2006 13:50:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9TDoO1p070870; Sun, 29 Oct 2006 13:50:24 GMT (envelope-from gnats) Resent-Date: Sun, 29 Oct 2006 13:50:24 GMT Resent-Message-Id: <200610291350.k9TDoO1p070870@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, Matthew Seaman Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B28916A415 for ; Sun, 29 Oct 2006 13:46:44 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6849743D46 for ; Sun, 29 Oct 2006 13:46:41 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id k9TDkPvf007935 for ; Sun, 29 Oct 2006 13:46:25 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.13.8/8.13.8/Submit) id k9TDkP18007934; Sun, 29 Oct 2006 13:46:25 GMT (envelope-from matthew) Message-Id: <200610291346.k9TDkP18007934@happy-idiot-talk.infracaninophile.co.uk> Date: Sun, 29 Oct 2006 13:46:25 GMT From: Matthew Seaman To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/104906: net-mgmt/nsca -- fix rc script X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthew Seaman List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Oct 2006 13:50:32 -0000 >Number: 104906 >Category: ports >Synopsis: net-mgmt/nsca -- fix rc script >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 29 13:50:24 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Matthew Seaman >Release: FreeBSD 6.2-PRERELEASE i386 >Organization: Infracaninophile >Environment: System: FreeBSD happy-idiot-talk.infracaninophile.co.uk 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #12: Sun Oct 8 14:05:53 BST 2006 root@happy-idiot-talk.infracaninophile.co.uk:/usr/obj/usr/src/sys/HAPPY-IDIOT-TALK i386 >Description: The /usr/local/etc/rc.d/nsca rc script is unusable as currently supplied: * The ncsa command is installed as /usr/local/sbin/nsca not /usr/local/libexec/nagios/nsca * /var/spoo/nagios/nsca.lock does not contain a PID. The default in version 2.6 seems to be to use /var/run/nsca.pid * Starting nsca as user nagios from the rc script prevents the process from chrooting. nsca will chroot, change UID to nagios and drop privileges itself, if those things are set in the config file. * nsca will reload itself when sent a HUP signal. * ncsa_flags get incorporated into the command line twice >How-To-Repeat: >Fix: --- nsca.diff begins here --- diff -Nur /usr/ports/net-mgmt/nsca/files/nsca.sh.in nsca/files/nsca.sh.in --- /usr/ports/net-mgmt/nsca/files/nsca.sh.in Thu Sep 14 13:27:47 2006 +++ nsca/files/nsca.sh.in Sun Oct 29 13:36:23 2006 @@ -12,10 +12,9 @@ name="nsca" rcvar=`set_rcvar` -command="%%PREFIX%%/libexec/nagios/nsca" -pidfile="/var/spool/nagios/nsca.lock" -nsca_user="nagios" -extra_commands="restart" +command="%%PREFIX%%/sbin/nsca" +pidfile="/var/run/nsca.pid" +extra_commands=reload nsca_enable=${nsca_enable:-"NO"} nsca_flags=${nsca_flags:-"--single"} @@ -24,6 +23,6 @@ load_rc_config "${name}" required_files="${nsca_configfile}" -command_args="-c ${nsca_configfile} ${nsca_flags}" +command_args="-c ${nsca_configfile}" run_rc_command "$1" --- nsca.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: