ports/161111: [PATCH] Extra command -- configtest for net-mgmt/nagios
Emil Smolenski
am at raisa.eu.org
Wed Sep 28 22:00:21 UTC 2011
>Number: 161111
>Category: ports
>Synopsis: [PATCH] Extra command -- configtest for net-mgmt/nagios
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 28 22:00:20 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Emil Smolenski
>Release: FreeBSD 8.2-STABLE
>Organization:
>Environment:
>Description:
It is difficult now to check if config files are correct (without reloading/restarting the daemon).
>How-To-Repeat:
>Fix:
Attached patch adds the configtest command to the rc script.
Patch attached with submission follows:
diff -ruN net-mgmt/nagios.orig/files/nagios.in net-mgmt/nagios/files/nagios.in
--- net-mgmt/nagios.orig/files/nagios.in 2011-08-23 03:50:48.000000000 +0200
+++ net-mgmt/nagios/files/nagios.in 2011-09-28 22:54:44.012716066 +0200
@@ -24,7 +24,7 @@
command="%%PREFIX%%/bin/nagios"
command_args="-d"
-extra_commands="reload"
+extra_commands="reload configtest"
pidfile="%%NAGIOSDIR%%/nagios.lock"
nagios_user="%%NAGIOSUSER%%"
@@ -32,6 +32,7 @@
stop_postcmd="stop_postcmd"
restart_precmd="nagios_checkconfig"
reload_precmd="reload_precmd"
+configtest_cmd="nagios_checkconfig"
sig_reload=HUP
load_rc_config "${name}"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list