Summary: | on external pppd disconnect other processes are terminated and restarted | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin <mrbscreen> |
Component: | [OLD] Unspecified | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Martin
2009-02-06 19:27:19 UTC
=== Here is a snippet of the syslog on one disconnect: Feb 6 19:44:44 mrb pppd[6074]: No response to 3 echo-requests Feb 6 19:44:44 mrb pppd[6074]: Serial link appears to be disconnected. Feb 6 19:44:44 mrb pppd[6074]: Connect time 1440.9 minutes. Feb 6 19:44:44 mrb pppd[6074]: Sent 463439586 bytes, received 1699834922 bytes. Feb 6 19:44:47 mrb sshd[6628]: Received signal 15; terminating. Feb 6 19:44:47 mrb nmbd[7080]: [2009/02/06 19:44:47, 0] nmbd/nmbd.c:terminate(58) Feb 6 19:44:47 mrb nmbd[7080]: Got SIGTERM: going down... Feb 6 18:44:47 mrb openvpn[6406]: event_wait : Interrupted system call (code=4) Feb 6 18:44:47 mrb openvpn[6406]: SIGTERM[hard,] received, process exiting Feb 6 19:44:47 mrb noip2[6974]: v2.1.9 daemon ended. Feb 6 19:44:48 mrb dnsmasq[6223]: exiting on receipt of SIGTERM Feb 6 19:44:50 mrb pppd[6074]: Connection terminated. Feb 6 19:44:50 mrb pppd[6074]: Modem hangup Feb 6 19:44:53 mrb pppd[6074]: PPP session is 63872 Feb 6 19:44:53 mrb pppd[6074]: Using interface ppp0 Feb 6 19:44:53 mrb pppd[6074]: Connect: ppp0 <--> eth0 Feb 6 19:45:02 mrb pppd[6074]: PAP authentication succeeded Feb 6 19:45:02 mrb pppd[6074]: peer from calling number xx:xx:xx:xx:xx:xx authorized Feb 6 19:45:02 mrb pppd[6074]: local IP address xxx.xxx.xxx.xxx Feb 6 19:45:02 mrb pppd[6074]: remote IP address xxx.xxx.xxx.xxx Feb 6 19:45:02 mrb pppd[6074]: primary DNS address xxx.xxx.xxx.xxx Feb 6 19:45:02 mrb pppd[6074]: secondary DNS address xxx.xxx.xxx.xxx Feb 6 19:45:02 mrb cvsd[6658]: version 1.0.16 starting Feb 6 19:45:02 mrb cvsd[6658]: listening on 0.0.0.0 2401 Feb 6 19:45:02 mrb cvsd[6658]: bind() failed: Address already in use Feb 6 19:45:02 mrb cvsd[6658]: version 1.0.16 bailing out Feb 6 19:45:02 mrb dnsmasq[6668]: started, version 2.46 cachesize 150 Feb 6 19:45:02 mrb dnsmasq[6668]: compile time options: IPv6 GNU-getopt DBus I18N no-TFTP Feb 6 19:45:02 mrb dnsmasq[6668]: using nameserver yyy.yyy.yyy.yyy#53 for domain xxxxxxxxx Feb 6 19:45:02 mrb dnsmasq[6668]: reading /etc/ppp/resolv.conf Feb 6 19:45:02 mrb dnsmasq[6668]: using nameserver xxx.xxx.xxx.xxx#53 Feb 6 19:45:02 mrb dnsmasq[6668]: using nameserver xxx.xxx.xxx.xxx#53 Feb 6 19:45:02 mrb dnsmasq[6668]: using nameserver xxx.xxx.xxx.xxx#53 for domain xxxxxxxxxxxxxx Feb 6 19:45:02 mrb dnsmasq[6668]: read /etc/hosts - 14 addresses Feb 6 19:45:02 mrb noip2[6708]: v2.1.9 daemon started Feb 6 19:45:02 mrb dhcpd: WARNING: Host declarations are global. They are not limited to the scope you declared them in. Feb 6 19:45:03 mrb sshd[6755]: Server listening on 0.0.0.0 port 22. Feb 6 19:45:03 mrb sshd[6755]: Server listening on :: port 222. Feb 6 19:45:03 mrb dhcpd: Wrote 0 class decls to leases file. Feb 6 19:45:03 mrb dhcpd: Wrote 0 deleted host decls to leases file. Feb 6 19:45:03 mrb dhcpd: Wrote 0 new dynamic host decls to leases file. Feb 6 19:45:03 mrb dhcpd: Wrote 9 leases to leases file. Feb 6 19:45:03 mrb openvpn[6765]: OpenVPN 2.1_rc15 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jan 4 2009 Feb 6 19:45:03 mrb openvpn[6765]: IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port. Feb 6 19:45:03 mrb openvpn[6765]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Feb 6 19:45:03 mrb openvpn[6765]: Control Channel Authentication: using 'yyyyyy' as a OpenVPN static key file Feb 6 19:45:03 mrb openvpn[6765]: TUN/TAP device vpn0 opened Feb 6 19:45:03 mrb openvpn[6809]: chroot to '/etc/openvpn/chroot' and cd to '/' succeeded Feb 6 19:45:03 mrb openvpn[6809]: GID set to openvpn Feb 6 19:45:03 mrb openvpn[6809]: UID set to openvpn Feb 6 19:45:03 mrb openvpn[6809]: UDPv4 link local (bound): [undef]:1194 Feb 6 19:45:03 mrb openvpn[6809]: UDPv4 link remote: [undef] Feb 6 19:45:03 mrb openvpn[6809]: Initialization Sequence Completed Feb 6 19:45:07 mrb ntpdate[6729]: step time server 81.169.136.18 offset -0.013863 sec Feb 6 19:45:07 mrb sm-notify[7275]: Already notifying clients; Exiting! Feb 6 19:45:07 mrb ntpd[7274]: ntpd 4.2.4p6@1.1549-o Fri Jan 23 20:52:23 UTC 2009 (1) Feb 6 19:45:07 mrb ntpd[7280]: precision = 1.000 usec Feb 6 19:45:07 mrb ntpd[7280]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled Feb 6 19:45:07 mrb ntpd[7280]: Listening on interface #1 lo, 127.0.0.1#123 Enabled Feb 6 19:45:07 mrb ntpd[7280]: Listening on interface #2 eth2, xxxxx#123 Enabled Feb 6 19:45:07 mrb ntpd[7280]: Listening on interface #3 br0, xxxx#123 Enabled Feb 6 19:45:07 mrb ntpd[7280]: Listening on interface #4 ppp0, 213.135.2.191#123 Enabled Feb 6 19:45:07 mrb ntpd[7280]: kernel time sync status 0040 Feb 6 19:45:07 mrb ntpd[7280]: frequency initialized 3.079 PPM from /var/lib/ntp/ntp.drift Feb 6 19:45:09 mrb noip2[6708]: xxxxxx was already set to yyyy. Feb 6 19:45:09 mrb noip2[6708]: xxxxxx was already set to yyyy. Feb 6 19:45:09 mrb noip2[6708]: xxxxxx was already set to yyyy. Feb 6 19:45:32 mrb dhcpd: DHCPINFORM from xxxx via br0 Feb 6 19:45:32 mrb dhcpd: DHCPACK to xxxx (xxxx) via br0 Feb 6 19:45:32 mrb dhcpd: DHCPINFORM from xxxx via br0 Feb 6 19:45:32 mrb dhcpd: DHCPACK to xxxx (xxxx) via br0 Feb 6 19:46:03 mrb dhcpd: DHCPREQUEST for xxxx from xxxx via br0 Feb 6 19:46:03 mrb dhcpd: DHCPACK on xxxx to xxx via br0 I forgot to say not every time all processes came back. So it could happen that I loose ssh. Ok I found the solution. Sorry for the inconvenience. The solution was to add the following to lines into /etc/conf.d/net: rc_net_br0_after="net.ppp0" # for starting the main network interface after internet connection. This avoids that ntp_client can not synchronize time in lack of the missing connection rc_net_ppp0_provide="!net" # Say that net.ppp0 not provides direct net services. rc_net_vpn0_provide="!net" #This setting have also done for the vpn0 device. Ok I found the solution. Sorry for the inconvenience. The solution was to add the following to lines into /etc/conf.d/net: rc_net_br0_after="net.ppp0" # for starting the main network interface after internet connection. This avoids that ntp_client can not synchronize time in lack of the missing connection rc_net_ppp0_provide="!net" # Say that net.ppp0 not provides direct net services. rc_net_vpn0_provide="!net" #This setting have also done for the vpn0 device. |