Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2006 04:29:23 GMT
From:      Jo Rhett <jrhett@svcolo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/94259: ncsa port needs an rc.d script (included)
Message-ID:  <200603090429.k294TNUR035785@www.freebsd.org>
Resent-Message-ID: <200603090430.k294U4M1093056@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94259
>Category:       ports
>Synopsis:       ncsa port needs an rc.d script (included)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 09 04:30:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jo Rhett
>Release:        6.0-REL
>Organization:
SVcolo
>Environment:
FreeBSD arran 6.0-RELEASE FreeBSD 6.0-RELEASE #4: Fri Nov 11 13:29:33 PST 2005     root@barrel.svcolo.com:/usr/obj/usr/src/sys/MEERMINIMAL  i386
>Description:
This patch adds an rc.d script to the nsca port.  This isn't required for inetd use, but is required for the standard use.
>How-To-Repeat:

>Fix:
*** Makefile.orig       Wed Mar  8 20:22:16 2006
--- Makefile    Wed Mar  8 20:23:05 2006
***************
*** 24,29 ****
--- 24,31 ----
  NAGIOS_DIR=   ${LOCALBASE}/libexec/nagios
  CONF_DIR=     ${LOCALBASE}/etc/nagios
  
+ USE_RC_SUBR=nsca.sh
+ 
  DOCS=         Changelog LEGAL README SECURITY
  
  # NOTE: this port installs into ${LOCALBASE} instead of ${PREFIX}
*** files/nsca.sh.in_orig       Wed Mar  8 20:25:25 2006
--- files/nsca.sh.in    Wed Mar  8 20:22:07 2006
***************
*** 0 ****
--- 1,31 ----
+ #!/bin/sh
+ #
+ 
+ #
+ # Add the following lines to /etc/rc.conf to enable nsca:
+ # nsca_enable (bool):    Set to "NO" by default.
+ #                          Set it to "YES" to enable nsca.
+ # nsca_flags (str):      Set to "--single" by default.
+ # nsca_configfile (str): Set to "%%PREFIX%%/etc/nagios/nsca.cfg" by default.
+ #
+ 
+ . %%RC_SUBR%%
+ 
+ name="nsca"
+ rcvar=`set_rcvar`
+ 
+ command="%%PREFIX%%/libexec/nagios/nsca"
+ pidfile="/var/spool/nagios/nsca.lock"
+ nsca_user="nagios"
+ extra_commands="restart"
+ 
+ [ -z "${nsca_enable}" ]       && nsca_enable="NO"
+ [ -z "${nsca_flags}" ]        && nsca_flags="--single"
+ [ -z "${nsca_configfile}" ]   && nsca_configfile="%%PREFIX%%/etc/nagios/nsca.cfg"
+ 
+ load_rc_config "${name}"
+ 
+ required_files="${nsca_configfile}"
+ command_args="-c ${nsca_configfile} ${nsca_flags}"
+ 
+ run_rc_command "$1"


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603090429.k294TNUR035785>