The nrpe2 rc.d file allows a user to change the location of the nrpe.cfg file. If one were to do so the find_pidfile() function is hardcoded to look in the location of the default path. Attaching patch. Fix: See attached patch Patch attached with submission follows: How-To-Repeat: Change the location of the nrpe.cfg file in /etc/rc.conf with: nrpe2_configfile="/your/random/location/nrpe.cfg" and then move the default file there and try to restart nrpe2
Responsible Changed From-To: freebsd-ports-bugs->zeising Over to maintainer.
Responsible Changed From-To: zeising->mandree Take it, per discussion on IRC yesterday.
Author: mandree Date: Thu Mar 13 21:24:01 2014 New Revision: 348129 URL: http://svnweb.freebsd.org/changeset/ports/348129 QAT: https://qat.redports.org/buildarchive/r348129/ Log: Fix acquisition of pidfile location. PR: ports/186837 Submitted by: Daniel Ylitalo <daniel@203webgroup.se> Approved by: zeising (maintainer) Modified: head/net-mgmt/nrpe/files/nrpe2.in Modified: head/net-mgmt/nrpe/files/nrpe2.in ============================================================================== --- head/net-mgmt/nrpe/files/nrpe2.in Thu Mar 13 21:22:11 2014 (r348128) +++ head/net-mgmt/nrpe/files/nrpe2.in Thu Mar 13 21:24:01 2014 (r348129) @@ -37,7 +37,7 @@ find_pidfile() [ -n "$nrpe2_pidfile" ] && warn "No longer necessary to set nrpe2_pidfile in rc.conf[.local]" - if get_pidfile_from_conf pid_file %%PREFIX%%/etc/nrpe.cfg; then + if get_pidfile_from_conf pid_file ${nrpe2_configfile}; then pidfile="$_pidfile_from_conf" else pidfile='%%PIDDIR%%/nrpe2.pid' _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Please make sure that you provide patches for source files, not the output files - most rc.d files are generated files, and providing patches for the output is useless.