Feb 8 22:02:06 disasm-srv ppp[704]: Phase: Using interface: tun0
Feb 8 22:02:06 disasm-srv ppp[704]: Phase: deflink: Created in closed state
Feb 8 22:02:06 disasm-srv ppp[704]: Phase: PPP Started (direct mode).
Feb 8 22:02:06 disasm-srv ppp[704]: Phase: bundle: Establish
Feb 8 22:02:06 disasm-srv ppp[704]: Phase: deflink: closed -> opening
Feb 8 22:02:06 disasm-srv ppp[704]: Phase: deflink: Connected!
Feb 8 22:02:06 disasm-srv ppp[704]: Phase: deflink: opening -> carrier
Feb 8 22:02:07 disasm-srv ppp[704]: Phase: deflink: carrier -> lcp
Feb 8 22:02:07 disasm-srv ppp[704]: Phase: bundle: Authenticate
Feb 8 22:02:07 disasm-srv ppp[704]: Phase: deflink: his = CHAP 0x05, mine = none
Feb 8 22:02:07 disasm-srv ppp[704]: Phase: Chap Input: CHALLENGE (16 bytes from vpdn-campus-2)
Feb 8 22:02:07 disasm-srv ppp[704]: Phase: Chap Output: RESPONSE (221873)
Feb 8 22:02:07 disasm-srv ppp[704]: Phase: Chap Input: SUCCESS
Feb 8 22:02:07 disasm-srv ppp[704]: Phase: deflink: lcp -> open
Feb 8 22:02:07 disasm-srv ppp[704]: Phase: bundle: Network
Feb 8 22:02:07 disasm-srv ppp[704]: Warning: 0.0.0.0/0: Change route failed: errno: No such process
Feb 8 22:02:07 disasm-srv ppp[704]: Warning: ff02:4::/32: Change route failed: errno: Network is unreachable
В это время работает сеть. Если в скрипте поставить паузу, то сеть будет работать всё это время.
И тут скрипт завершается...
Feb 8 22:02:13 disasm-srv ppp[704]: Phase: Signal 1, terminate.
Feb 8 22:02:13 disasm-srv ppp[704]: Phase: bundle: Terminate
Feb 8 22:02:13 disasm-srv ppp[704]: Phase: deflink: open -> lcp
Feb 8 22:02:13 disasm-srv ppp[704]: Warning: 0.0.0.0/0: Change route failed: errno: No such process
Feb 8 22:02:13 disasm-srv ppp[704]: Warning: ff02:4::/32: Change route failed: errno: Network is unreachable
Feb 8 22:02:13 disasm-srv ppp[704]: Phase: deflink: Disconnected!
Feb 8 22:02:13 disasm-srv ppp[704]: Phase: deflink: Connect time: 7 secs: 920 octets in, 546419 octets out
Feb 8 22:02:13 disasm-srv ppp[704]: Phase: deflink: 13 packets in, 721 packets out
Feb 8 22:02:13 disasm-srv ppp[704]: Phase: total 78191 bytes/sec, peak 136549 bytes/sec on Sun Feb 8 22:02:09 2009
Feb 8 22:02:14 disasm-srv ppp[704]: Phase: deflink: lcp -> closed
Feb 8 22:02:14 disasm-srv ppp[704]: Phase: bundle: Dead
Feb 8 22:02:14 disasm-srv ppp[704]: Phase: PPP Terminated (normal).
telecom2_start()
{
echo "Starting PPTP connection to MIPT UPCHK"
routes_add > /dev/null
/sbin/ifconfig tun0 down
/sbin/ifconfig tun0 destroy
date >> /tmp/pp.log
/usr/bin/netstat -rn >> /tmp/pp.log
echo >> /tmp/pp.log
$pptp vpdn-campus.mipt.ru TELECOM 1>/dev/null 2>&1 &
/bin/sleep 4
$route delete -host 193.125.142.233
$route delete -host 193.125.142.246
/usr/local/bin/php /usr/MYFILES/ip_update/update.php
date
return 0
}
сеть падает через три секунды, после даты, выведенной командой date