From: Valentin Lavrinenko <lvu@uaservice.com.ua> To: community@altlinux.ru Subject: [Comm] /sbin/ifup ppp0 - некорректная работа по Ctrl-C Date: Wed, 12 Oct 2005 14:12:45 +0300 Message-ID: <434CEFAD.1010407@uaservice.com.ua> (raw) Здравтсвуйте все! Обнаружилась следующая трабла. При поднятии ppp-соединения с помощью /sbin/ifup ppp0 обрываю его по Ctrl-C. В принципе, все присходит нормально, pppd ловит сигнал и корректно завершается. Но, если нажать Ctrl-C очень быстро (сразу после выполнения команды), то получается следующее: pppd сигнал, судя по логам, не получает, и продолжает коннектиться. Скрипт же ifup завершается, говоря, что Failed to activate ppp0 with error 35 (точнее, говорит это, видимо, usernetctl), и, очевидно, не делает ничего, что должен бы после запуска pppd сделать - не прописывается маршрутизация и т. п. То есть, я получаю установленный коннект (ifconfig показывает интерфейс ppp0 со всеми параметрами), но через него ничего не работает, и, что самое неприятное, команда /sbin/ifdown ppp0 не обрывает коннект! Повторный /sbin/ifup ppp0 также считает, что коннекта нету - вместо того, чтобы оборвать связь и начать перезванивать, просто пытается снова запустить pppd, который, что вполне естественно, говорит, что порт занят. Насколько я смог "рассмотреть", проблема возникает тогда, когда Ctrl-C наживается еще до запуска chat (или самого pppd?). Кто именно пересылает SIGTERM pppd, я так и не понял. Помогите разобраться, пожалуйста! Информация о системе: ALT Linux Master 2.4, модем Nokia 30 GSM Connectivity Terminal на ttyS0. Настройки: /etc/sysconfig/network-scripts/ifcfg-ppp0: DEVICE=ppp0 ONBOOT=no USERCTL=yes MODEMPORT=/dev/ttyS0 LINESPEED=115200 PERSIST=yes DEFABORT=yes DEBUG=yes INITSTRING=ATZ DEFROUTE=yes HARDFLOWCTL=yes ESCAPECHARS=no BOOTPROTO=none PEERDNS=yes /etc/sysconfig/network-scripts/chat-ppp0: TIMEOUT 5 ECHO ON ABORT '\nBUSY\r' ABORT '\nERROR\r' ABORT '\nNO ANSWER\r' ABORT '\nNO CARRIER\r' ABORT '\nNO DIALTONE\r' ABORT '\nRINGING\r\n\r\nRINGING\r' '' \rAT TIMEOUT 12 OK ATH OK ATE1 OK 'AT+CGDCONT=1,"IP","www.umc.ua","",0,0' OK ATD*99# TIMEOUT 22 CONNECT ""
next reply other threads:[~2005-10-12 11:12 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-10-12 11:12 Valentin Lavrinenko [this message] 2005-10-18 11:24 ` Valentin Lavrinenko 2005-10-18 18:34 ` [Comm] " Michael Shigorin 2005-10-19 6:45 ` Valentin Lavrinenko 2005-10-19 12:20 ` Michael Shigorin 2005-10-19 13:49 ` Valentin Lavrinenko 2005-10-19 13:54 ` Michael Shigorin 2005-10-20 6:33 ` Valentin Lavrinenko 2005-10-20 11:55 ` Michael Shigorin 2005-10-21 8:11 ` Valentin Lavrinenko 2005-10-21 12:09 ` 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=434CEFAD.1010407@uaservice.com.ua \ --to=lvu@uaservice.com.ua \ --cc=community@altlinux.ru \ /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 Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git