Put your ppp daemon in /etc/inittab.
Here is what mine looks like:
pp:3:respawn:/usr/sbin/pppd
To handle your IP information, locate the ip-up script for pppd. On
redhat, it is under /etc/ppp/ip-up.local, you may have something
different. Call your dynip update script from this one.
This will not ensure some minimum amount of traffic before a redial, it
will keep you online 24x7 though :)
There is one prerequisite to this method. You must have all your ppp
stuff configured so that it will make a connection on it's own. Example:
you should be able to type: "pppd" on the command line and have the
connection come up. This means your ppp/options file should have all the
parms needed for your connection and it should call "chat" with the
proper information.
If you need more info, I will post my config files.
Randy
Robert Schelander wrote:
>
> Hi!
>
> My ISP kills my ISDN connection every 8 hours
> and so I have to reconnect.
> (of course I get a new dynamic IP, but doesn't matter)
>
> Does someone know how reconnect automatically
> without just setting dialing to "auto" and ensure
> that there is always a minium traffic to autodial
> after disconnection.
> How can I do something like an event-handler to
> force reconnect exactly that second when it happens?
> I also want to send my new dynamic IP immediately
> after reconnect to dynhost.com.
> I've no idea where to insert the execution of a script.
> I don't want to do lame cron jobs but a real event-handler
> script.
>
> Any help would be appreciated.
>
> 73, Robert
> OE8RSQ
--
/**********************************************
** Randy Smith ARS N3XA **
** [EMAIL PROTECTED] **
** Micro$oft will sell you a few Windows, **
** but Linux will give you the whole house! **
*********************************************/