> Em 26 de abr de 2016, à(s) 22:09, Paulo Henrique <paulo.rd...@bsd.com.br> > escreveu: > > 2016-04-26 17:49 GMT-03:00 Tiago Ribeiro <sha...@gmail.com>: > >> Ontem fui instalar um zabbix proxy via ports e estava dando um erro que vou >> passar mais a frente, e hoje após fazer um pkg update , que atualizou pro >> zabbix24-proxy-2.4.7_1 começou o mesmo erro. >> >> Segue o erro: >> >> /usr/local/etc/rc.d/zabbix_proxy: ERROR: USAGE: get_pidfile_from_conf >> string file (zabbix_proxy) >> >> Após modificar o arquivo /usr/local/etc/rc.d/zabbix_proxy, que estava >> desta forma: >> >> find_pidfile() >> { >> if get_pidfile_from_conf PidFile ${zabbix_agentd_config}; then >> pidfile="$_pidfile_from_conf" >> else >> pidfile="/tmp/${name}.pid" >> fi >> >> # This shouldn't be necessary with pidfile, but empirically it was >> the >> # only way to reap the parent PID instead of all PIDs from >> # check_process, which may leak SysV IPC objects and prevent >> restart >> # and/or race condition on restart. >> rc_pid=$(check_pidfile ${pidfile} ${command}) >> } >> >> Deixando da seguinte da forma funciona: >> >> find_pidfile() >> { >> pidfile="/tmp/${name}.pid" >> >> # This shouldn't be necessary with pidfile, but empirically it was >> the >> # only way to reap the parent PID instead of all PIDs from >> # check_process, which may leak SysV IPC objects and prevent >> restart >> # and/or race condition on restart. >> rc_pid=$(check_pidfile ${pidfile} ${command}) >> } >> >> >> — >> http://www.bsdjf.com.br >> >> ------------------------- >> Histórico: http://www.fug.com.br/historico/html/freebsd/ >> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd >> > > Não altere o script, vai dar pau na proxima atualização, tem que ajustar o > local e arquivo no /usr/local/etc/zabbix24/zabbix_proxy.conf > > Att.
Fiz informando o PidFile=/tmp/zabbix_proxy.pid, mas continuava o erro, sei que na próxima atualização vou ter problemas. — http://www.bsdjf.com.br ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd