Bom, não consegui descobrir o porque o HAVP para de iniciar junto com o Endian, mas consegui uma solução paleativa, conforme havia dito eu sabia que se eu desse um restart no serviço do HAVP ou no Squid ele voltava a funcionar, então coloquei um script para iniciar no boot, já desliguei e reiniciei várias vezes e até agora o HAVP está iniciando no boot, abaixo segue os procedimentos:
1 – Para Habilitar o Envio de Event Notifications eu segui o post http://endian.eth0.com.br/forums/topic/notificacoes-de-eventos/, as notificações estão chegando OK, bem legal gostei muito dessa opção;
2 – Criar um script dentro de /etc/rc.d/init.d/
eu criei com nome de “erro_havp”, já criei com o vi direto,
# vi /etc/rc.d/init.d/erro_havp
3 – Dentro do arquivo coleque o seguinte:
#!/bin/bash
/usr/local/bin/restartsquid.py
exit 0
4 – De permissão de execução nesse script:
#chmod +x /etc/rc.d/init.d/erro_havp
5 – Edite o arquivo /etc/rc.d/rc.ipac
e no final antes da linha exit 0
coloque o caminho do script que foi criado anteriormente, um detalhe é que tem que ter o ponto antes do caminho, o meu ficou conforme abaixo:
#!/bin/sh
#
# +-----------------------------------------------------------------------------+
# | Endian Firewall |
# +-----------------------------------------------------------------------------+
# | Copyright (c) 2005-2006 Endian |
# | Endian GmbH/Srl |
# | Bergweg 41 Via Monte |
# | 39057 Eppan/Appiano |
# | ITALIEN/ITALIA |
# | info@endian.it |
# | |
# | This program is free software; you can redistribute it and/or |
# | modify it under the terms of the GNU General Public License |
# | as published by the Free Software Foundation; either version 2 |
# | of the License, or (at your option) any later version. |
# | |
# | This program is distributed in the hope that it will be useful, |
# | but WITHOUT ANY WARRANTY; without even the implied warranty of |
# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# | GNU General Public License for more details. |
# | |
# | You should have received a copy of the GNU General Public License |
# | along with this program; if not, write to the Free Software |
# | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
# | http://www.fsf.org/ |
# +-----------------------------------------------------------------------------+
#
echo "Setting up ip accounting"
/etc/rc.d/helper/writeipac.pl
/usr/sbin/fetchipac -S
./etc/rc.d/init.d/erro_havp
exit 0
6 – Reinicie o Endian verifique na interface Web em Estado se o HAVP esta iniciado, se não tente iniciar de novo.
-
Esta resposta foi modificada 9 anos, 7 meses atrás por Erlan Fernando.