archive mirror
 help / color / mirror / Atom feed
From: "Morel Bérenger" <>
Subject: How to know when a link is established or destroyed?
Date: Mon, 22 Oct 2018 10:28:18 +0000	[thread overview]
Message-ID: <20181022122818.1780e0bd@PC-dev2> (raw)

[-- Attachment #1: Type: text/plain, Size: 1432 bytes --]


I am using pppd to have network access through GPRS/3G/4G on systems I
do not have physical access to.

Since I want the system to be up almost always, I am trying to manage
my daemons through runit (daemontools), which works by keeping child
process foreground and restart it when it dies for a reason or another,
eventually logging whatever came on stdout.

I can run pppd in that way, but I have no idea about how to know if the
connection is really established or not, and on some systems manual
reboot is sometimes needed, because it seems that pppd only tries 3 or
4 times to restore connection when link is cut, and if not it just
stays alive doing nothing.

So, I think either I missed the options needed to do what I need, or
there is a tool to manage pppd that I don't know, or it is not
implemented at all.

If if is not implemented at all, is it intended? Would it be fine if I
submit a patch doing this?

I am using the 2.4.7 version from the Debian 9 (stretch) package
2.4.7-1+4 on amd64.
$ uname -a
Linux PC-dev2 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04)
x86_64 GNU/Linux

Thanks in advance.

PS: I'm not registered to this list, so I added my mail in the CC field.

SGA Automation
27 Rue Jean-Philippe Rameau
Pôle Delta
76000 Rouen
Tel : 02 32 10 38 53
Fax : 02 32 10 11 30
Email :

[-- Attachment #2: Signature digitale OpenPGP --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2018-10-22 10:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-22 10:28 Morel Bérenger [this message]
2018-10-22 14:40 ` James Carlson
2018-11-13 12:08 ` Morel Bérenger
2018-11-13 16:49 ` James Carlson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181022122818.1780e0bd@PC-dev2 \ \ \
    --subject='Re: How to know when a link is established or destroyed?' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).