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

Re: Problèmes avec ppp et pppod



> et la liaison ne se relance pas (avec persist et maxfail 0)

Il semble que ces options fonctionnent quand la connection s'arrête,
mais pas quand elle convenablement terminée par l'autre partie...

Du coup, pour garder une connection 24h/24, je me suis fait un script.
Il vérifie si /var/local/ppp.keep est un fichier, et si oui, relance la
connexion. Le script se trouve dans /etc/ppp/ip-down.d/

Techniquement,
le Moine Fou
-- 
pierre.thierry@moine-fou.org
OpenPGP 0xD9D50D8A
#!/bin/sh

KEEP=/var/local/ppp.keep
LOG=/var/log/keep.log

RECONNECT=[ -f $KEEP]
if $RECONNECT; then
	LINE="ppp:[keep up]";
else
	LINE="ppp:[let go down]";
fi

echo `date`>> $LOG
echo $LINE >> $LOG

if $RECONNECT; then
	ifdown ppp0 && ifup ppp0 2>&1 >> $LOG;
fi

echo ""    >> $LOG

Attachment: pgpNoS8f80Gvw.pgp
Description: PGP signature


Reply to: