🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #12679

RESUELTO

#12679
From: Javi Pardo (DAKOTA-Win2K)
Date: Fri, 08 Jun 2001 21:49
66 lines
2570 bytes
#!/bin/bash
#

#
# Script to verify the existence of a DNS process and launch one
# if it isn't running
#

DNS=`ps aux -w|grep dns2go|grep -v grep`
DNSPROG="/usr/local/bin/dns2go"

if [ "$DNS" = "" ]
then
        echo "DNS NOT running, re-running it again."
        $DNSPROG  >/dev/null 2>&1
fi


tenia que quitar el restart y ya esta

muchas gracias pq funciona genial :)




"Jos� Luis P�rez Diez" <Jluis@noEmai.com> escribi� en el mensaje
news:VA.00000206.0a4ae8f6@noemai.com...
> In article <9fos84$57mcp$1@ID-57131.news.dfncis.de>, Javi Pardo
(DAKOTA-Win2K)
> wrote:
> > pues no relanza la aplicaciopn�... algo debe estar mal no?
> >
> > DNS=`ps aux|grep named|grep -v grep`
> > DNSPROG="/usr/local/bin/dns2go &"
> >
> Si no has segido sus intrucciones completamente esa que decia que
cambiases
> named por el programa que usas cambia las lineas
> 1:
> DNS=`ps aux|grep named|grep -v grep`
> a
> DNS=`ps aux|grep dns2go|grep -v grep`
>
> 2:
> DNSPROG="/sbin/init.d/named"
> a
> DNSPROG="/usr/local/bin/dns2go"
> 3:
>         $DNSPROG restart >/dev/null 2>&1
>         a
>         $DNSPROG -r >/dev/null 2>&1
>
> Tambien podrias hacerlo si no he entendido mal la pagina del maunual
parametros
> del fichero de configuracion referentes al latido (paquete UDP) dns2go a
180
> minutos con lo que dirigira el trafico a tu ip hasta dos horas despues del
> ultimo latido.
>
> --
> Los programadores esta ocupados intendtado mejorar los programas a prueba
de
> idiotas. Mientras tanto el universo  intenta mejorar los idiotas. El
universo
> va ganando
>
Technical Details
Message-ID: <9frh7f$5kcg3$1@ID-57131.news.dfncis.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!fu-berlin.de!uni-berlin.de!62.57.121.52!not-for-mail
References: <9fofaj$56fe8$1@ID-57131.news.dfncis.de> <slrn9hvqj3.3pl.liman@linux.sanyres.es> <9fos84$57mcp$1@ID-57131.news.dfncis.de> <VA.00000206.0a4ae8f6@noemai.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,7e7bc5b532594a79
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-06-08 14:48:33 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!fu-berlin.de!uni-berlin.de!62.57.121.52!not-for-mail
From: "Javi Pardo \(DAKOTA-Win2K\)" <dakotaTIMO@menta.net>
Newsgroups: es.comp.os.linux.programacion
Subject: RESUELTO
Date: Fri, 8 Jun 2001 23:49:05 +0200
Lines: 68
Message-ID: <9frh7f$5kcg3$1@ID-57131.news.dfncis.de>
References: <9fofaj$56fe8$1@ID-57131.news.dfncis.de> <slrn9hvqj3.3pl.liman@linux.sanyres.es> <9fos84$57mcp$1@ID-57131.news.dfncis.de> <VA.00000206.0a4ae8f6@noemai.com>
NNTP-Posting-Host: 62.57.121.52
X-Trace: fu-berlin.de 992036911 5911043 62.57.121.52 (16 [57131])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200