=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
UNIX GURU UNIVERSE DICA UNIX
Dica Unix 2529 - 4 de dezembro de 2006
http://www.ugu.com/sui/ugu/show?tip.today
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
FAZENDO AQUELES DAEMONS FUNCIONAREM
Este é um script que pode ser utilizado para manter daemons funcionando, caso os mesmos resolvam parar de funcionar por algum motivo desconhecido.
Esta dica foi generosamente remetida por : ken@theglobeandmail.com ——————– começa aqui —————–
#!/bin/csh
NAME
keepitup.csh - Keep demons up and running
SYNOPSIS
keepitup.csh
DESCRIPTION
If any of the following processes are down, then start them up
again. This script can be run every few minutes from a crontab.
AUTHOR
Ken Stevens kstevens@globeandmail.ca
foreach daemon ( /opt/GIS/apps/EventDispatcher/scripts/EventDispatcher.pl /opt/GIS/apps/CatchFTP/scripts/ProcessFTP.pl /opt/GIS/apps/NewsHound/scripts/NewsHound.pl )
ps -e | fgrep echo $daemon:t | cut -c1-8
> /dev/null
if ( $status > 0 ) then echo Restarting $daemon date $daemon & endif
end
Para entrar : http://www.ugu.com/sui/ugu/show?tip.subscribe Para sair: http://www.ugu.com/sui/ugu/show?tip.unsubscribe Para enviar uma dica: http://www.ugu.com/sui/ugu/show?tip.today
DECLARAÇÃO: TODAS AS DICAS DE UNIX SÃO PROPRIEDADE DA UNIX GURU UNIVERSE E NÃO SÃO PARA SER VENDIDAS, IMPRESSAS OU USADAS SEM O CONSENTIMENTO POR ESCRITO DA UNIX GURU UNIVERSE. TODAS AS DICAS SÃO "USADAS POR SEU PROPIO RISCO". UGU ADVERTE PARA TESTAR TODAS AS DICAS EM UM AMBIENTE QUE NÃO ESTEJA EM PRODUÇÃO.Unix Guru Universe - www.ugu.com - tips@ugu.com - Copyright 1994-2006