Re: PPPoE und T-Offline
On Wed, Jul 03, 2002 at 06:13:08PM +0200, Marcus Jodorf wrote:
->| Package: monit
->| Priority: extra
->| Section: admin
->| Installed-Size: 164
->| Maintainer: Fredrik Steen <stone@debian.org>
->| Architecture: i386
->| Version: 2.4-1
->| Depends: libc6 (>= 2.2.4-4)
->| Filename: pool/main/m/monit/monit_2.4-1_i386.deb
->| Size: 64000
->| MD5sum: 342754294dfcb166e29e8fe56d423ce0
->| Description: A utility for monitoring and managing daemons or similar programs
->| monit is a utility for monitoring and managing daemons or similar
->| programs running on a Unix system. It will start specified programs
->| if they are not running and restart programs not responding.
->`----
->
->
->Gruß,
->
->Marcus
Warum nicht einfach /etc/ppp/ip-down.d/ benutzen.
Folgendes Python-script (irgendwo von Debianhelp) läuft bei mir
anstandslos.
#!/usr/bin/python
import time,posix,os,sys,commands, string
pid = posix.fork()
if pid != 0:
sys.exit()
failwait = 15
while 1:
time.sleep(failwait)
if string.find(commands.getoutput("ifconfig"),"ppp0") >= 0:
break
if string.find(commands.getoutput("ps ax"),"pppd") >= 0:
continue
os.system("pon")
failwait = int(failwait * 1.5)
Gruß Veit
--
Veit Waltemath <veitw@wsbt.de> | reg. Linux User #140794
01896 Pulnitz / Germany | Debian GNU/Linux Systems
Bridge ahead. Pay troll.
--
Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-request@lists.debian.org
mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
Reply to: