From: Artem Zolochevskiy <artem.zolochevskiy@gmail.com>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] pppoe - автоматическое восстановление упавшего соединения
Date: Sun, 27 May 2007 23:16:56 +0300
Message-ID: <f3coqf$i7k$1@sea.gmane.org> (raw)
In-Reply-To: <200705272153.24023.ave4600@mail.ru>
Alexander Yereshenko wrote:
> Доброе!
>
> Имеем текущий сизиф, соединение ppp20 (pppoe) через eth0 (по нему имеем
> доступ в инет через локальную сеть). Иногда соединение pppoe может
> отваливаться (мож какие неурядицы с сервером или еще чего - это районная
> локалка). Приходится ручками восстанавливать. Что нужно и кому сказать,
> чтобы это делалось
> автоматом? Мож опция для ppp какая есть?
мне посоветовали использовать cron каждую минуту - вот что у меня
в /etc/cron.d/ppp
* * * * * root [ -s /var/run/ppp0.pid ] && exit 0 || exec /sbin/ifup ppp0
до этого я хотел обойтись "штатными" средствами
persist
maxfail 0
но напоролся на то, что есть риск незагрузиться вообще при проблеме с
соединением! (если ppp стоит в ONNBOOT=yes) - так и останется машинка
висеть на стадии поднятия сети.
так что приходится вот дёргать cron :(
--
Artem Zolochevskiy
Kaliningrad, Russia
JID: az@jabber.org
next prev parent reply other threads:[~2007-05-27 20:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-27 18:53 Alexander Yereshenko
2007-05-27 20:16 ` Artem Zolochevskiy [this message]
2007-05-28 2:44 ` Вадим Илларионов
2007-05-28 8:05 ` Michael Shigorin
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='f3coqf$i7k$1@sea.gmane.org' \
--to=artem.zolochevskiy@gmail.com \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git