ports/94259: ncsa port needs an rc.d script (included)
Jo Rhett
jrhett at svcolo.com
Thu Mar 9 04:30:05 UTC 2006
>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 at 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:
More information about the freebsd-ports-bugs
mailing list