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

Responder a