[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: restarting pppd automatically



On 28/12/2020 09:34, Tixy wrote:
> On Sun, 2020-12-27 at 23:56 +0000, Graham Seaman wrote:
>> I'm having problems with pppd and an intermittent phone line connection. 
>> My external line occasionally drops out, usually briefly (I'm trying to 
>> get this fixed but need a workaround in the meantime). 

> I know this is not what you asked for, and may not work for your use
> case, but how about just preventing pppd stopping in the first place?
> For my system that I set up 10 years ago and is still running, the
> notes I wrote at the time say this:
> 
>    Edit /etc/ppp/peers/dsl-provider to add a line saying "maxfail 0";
>    after the 'persist' entry is a good place. This should stop pppd
>    from timing out when it can't connect.
>    
> I did that so my internet connection came back up when the modem
> reconnected after an outage.
> 

That seems to work fine and is a nice simple solution. At any rate, it
works when I just yank the cable out temporarily; now to leave it for a
while to see if it works with the real problem too (maybe a week or two
before I know).

Thank you!

Graham


Reply to: