Re: [woody] curseur mode console et fermeture connexion ppp...
Le 12354ième jour après Epoch,
Frédéric Petit écrivait:
> François TOURDE wrote:
>
>> Je ne comprends pas bien le principe. pppd est là pour établir la
>
> Ok.
>
> Voyons la scène au ralenti.
>
> Ma woody boote, pppd tourne. Ok.
>
> Je fais un apt-get install gloups, par exemple, il établit la
> connexion et récupère tout ce qu'il faut. Ok. Jusque là, tout va bien.
>
> Là où ça ne va plus, c'est ensuite.
>
> Je désire clore la connexion (pour éviter un dépassement de mon
> forfait, évidemment).
>
> Si je fais un poff, il me tue pppd : je ne peux donc plus me
> reconnecter sans relancer pon. Il n'y a donc pas de reconnexion
> automatique possible.
Ah ben voilà... Tout de suite je comprends mieux... :)
man pppd:
SIGHUP This signal causes pppd to terminate the link, restore the
serial device settings, and close the serial device. If the
persist or demand option has been specified, pppd will try to
reopen the serial device and start another connection (after the
holdoff period). Otherwise pppd will exit. If this signal is
received during the holdoff period, it causes pppd to end the
holdoff period immediately.
En gros, tu mets dans les options le mode demand, tu peux aussi préciser une
période de idle au bout de laquelle il stoppe, et quand tu envoie le signal
HUP, pppd clos la connection et reste en attente.
Voilà voilà...
--
Psychiatry enables us to correct our faults by confessing our parents'
shortcomings.
-- Laurence J. Peter, "Peter's Principles"
Reply to: