Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Nov 2006 14:10:23 GMT
From:      Francisco Guerreiro <francisg@fnop.net>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/94571: Error in net-mgmt/zabbix rc.d files
Message-ID:  <200611031410.kA3EANAa087995@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/94571; it has been noted by GNATS.

From: Francisco Guerreiro <francisg@fnop.net>
To: bug-followup@FreeBSD.org
Cc: guilherme.oliveira@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
 
 
 
 
 
 



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