ports/94571: Error in net-mgmt/zabbix rc.d files

Francisco Guerreiro francisg at fnop.net
Fri Nov 3 14:10:24 UTC 2006


The following reply was made to PR ports/94571; it has been noted by GNATS.

From: Francisco Guerreiro <francisg at fnop.net>
To: bug-followup at FreeBSD.org
Cc: guilherme.oliveira at gmail.com
Subject: Re: ports/94571: Error in net-mgmt/zabbix rc.d files
Date: Fri, 03 Nov 2006 14:01:20 +0000

 Hi,
 
 I had the same problem and fixed it easily like this:
 
 this is the normal zabbix_agentd rc.d script:
 <snip file="zabbix_agentd">
 #!/bin/sh
 
 . /etc/rc.subr
 
 
 name="zabbix_agentd"
 rcvar=`set_rcvar`
 command="${prefix}/bin/${name}"
 required_files="/etc/zabbix/${name}.conf"
 
 run_rc_command "$1"
 #
 </snip>
 
 you just need to add 2 lines there, setting the "prefix" variable to  
 /usr/local and running load_rc_config before run_rc_command, resulting  
 in the following:
 
 <snip file"zabbix_agentd">
 #!/bin/sh
 
 . /etc/rc.subr
 
 
 name="zabbix_agentd"
 rcvar=`set_rcvar`
 prefix="/usr/local"
 command="${prefix}/bin/${name}"
 required_files="/etc/zabbix/${name}.conf"
 
 load_rc_config "$name"
 run_rc_command "$1"
 #
 </snip>
 
 doing the same for zabbix_suckerd.
 
 should i send a diff or something?
 the corrected scripts are located here:
 
 http://fnop.net/~francisg/scripts/zabbix/
 
 best regards,
 Francisco Guerreiro
 
 
 
 
 
 



More information about the freebsd-ports-bugs mailing list