Sponsored Content
Full Discussion: SIGHUP received to pppd
Operating Systems Linux SIGHUP received to pppd Post 54095 by jaguar on Monday 2nd of August 2004 12:24:15 PM
Old 08-02-2004
SIGHUP received to pppd

Hi all,

I have a question about pppd.
I got a Slack box with kernel 2.4.20.
I'm learning how to connect my CONSOLE to internet with a chat script.
Following these steps, MANY times I can connect to internet very pretty nice.
But also MANY times (says 50%-50%) SIGHUP received to pppd unintentionally.
These are my configurations:-
1. I attached a serial modem to /dev/ttyS0 and created a link ``/dev/modem''
2. I compiled kernel to support PPP.
3. I edit /etc/ppp/pap-secrets, and created a link from chap-secrets to the pap one.
Code:
# cat /etc/ppp/pap-secrets

"my_user_name@my.isp.domain"	*	"my_password"

# ln -s /etc/ppp/pap-secrets /etc/ppp/chap-secrets

4. I created a dial script as following.
Code:
# cat /usr/sbin/dial

#!/bin/sh
/usr/sbin/pppd /dev/modem 115200 connect \
'/usr/sbin/chat "" ATDT1234567 CONNECT' \
noipdefault defaultroute user my_user_name@my.isp.domain

5. I edit /etc/resolv.conf
Code:
# cat /etc/resolv.conf

search my.isp.domain
nameserver 202.57.160.129
nameserver 202.57.128.67
options timeout:60 attempts:9

Then I make a dial call.
As said 50% good, but 50% SIGHUP received to pppd.
And my /var/log/messages is
Code:
# tail -n20 /var/log/messages

Aug  2 20:59:21 darkstar pppd[670]: pppd 2.4.1 started by root, uid 0
Aug  2 20:59:52 darkstar pppd[670]: Serial connection established.
Aug  2 20:59:52 darkstar pppd[670]: Using interface ppp0
Aug  2 20:59:52 darkstar pppd[670]: Connect: ppp0 <--> /dev/modem
Aug  2 20:59:52 darkstar /etc/hotplug/net.agent: assuming ppp0 is already up
Aug  2 21:00:10 darkstar kernel: PPP BSD Compression module registered
Aug  2 21:00:10 darkstar kernel: PPP Deflate Compression module registered
Aug  2 21:00:10 darkstar pppd[670]: local  IP address 202.57.173.157
Aug  2 21:00:10 darkstar pppd[670]: remote IP address 202.57.160.204
Aug  2 21:08:40 darkstar pppd[670]: No response to 4 echo-requests
Aug  2 21:08:40 darkstar pppd[670]: Serial link appears to be disconnected.
Aug  2 21:08:46 darkstar pppd[670]: Connection terminated.
Aug  2 21:08:46 darkstar pppd[670]: Connect time 8.8 minutes.
Aug  2 21:08:46 darkstar pppd[670]: Sent 48095 bytes, received 96163 bytes.
Aug  2 21:08:47 darkstar pppd[670]: Hangup (SIGHUP)
Aug  2 21:08:47 darkstar pppd[670]: Exit.

Could anyone please point me out?
Thanks in advance Smilie

P.S. This internet account work very well with MS Windows, so I think the problem should be in my configuration.
 

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

how to make a current running process ignore SIGHUP signal?

I ask this question since sometimes i run a time-consuming ftp in foreground and forget to use nohup ftp.sh & to put this work background and can still running after i log off. Assume this ftp task have run 1 hour, and still 1 hour time to end, i don't want to abort the ftp, first, i use ctrl+Z... (3 Replies)
Discussion started by: stevensxiao
3 Replies

2. UNIX for Dummies Questions & Answers

pppd problem

Hello, I have Zydas 56k USB modem.... (it tells you lots of:) and the thing is I'd like to make it work with FreeBSD 5.2.1, however after all: /etc/ppp/options /etc/ppp/chat.script have been set up it gives an error like: tcgettatr: Invalid argument. (the modem is connected to ugen0) If you... (3 Replies)
Discussion started by: wopsis
3 Replies

3. Cybersecurity

pppd-pap problem

Hi Everybody, i need to make the ppp-authentication phase (pap) up in my linux -2.4 and the peer is Mandrake-linux-2.6. I am using pppd command for the same. I am using the below command. $pppd /dev/ppps locip:remip user (user_name) remotename(remote_name) papcrypt In... (1 Reply)
Discussion started by: sriram.ec
1 Replies

4. Programming

'SIGHUP','SIGTSTP' undeclared

I compile following statement signal(SIGHUP,sig_hup); kill(getpid(),SIGTSTP); $gcc test.c it raise following error: error:'SIGHUP' undeclared (first use in this function) error:'SIGTSTP' undeclared (first use in this function) Why raise above error? which head file include... (1 Reply)
Discussion started by: konvalo
1 Replies

5. Solaris

PPPD on ttya with serial console...?

Hi. I am very very new to Solaris. I found an abandoned Sun Blade 150. I created a 3-wire null modem cable, connected it to an abandoned laptop and successfully installed Solaris 10 using the serial port. This laptop doesn't have ethernet. So I want to establish a PPP connection. Part of the... (2 Replies)
Discussion started by: neutronscott
2 Replies

6. AIX

SIGHUP killing Oracle Listener Process

I have a cold backup script which backs up my database and then restarts the oracle listener and database at around 01:30 I can see at this time that my database and listener are indeed running. However at around 02:17 my listener process receives a SIGHUP 1 signal from the AIX OS ( version 5.3 )... (2 Replies)
Discussion started by: jimthompson
2 Replies
IRNETD(4)						       Linux-IrDA man pages							 IRNETD(4)

NAME
irnetd - Handle automatically incoming IrNET connections SYNOPSIS
irnetd [ppp-options] DESCRIPTION
Irnetd is a very simple daemon automatically handling incoming IrNET connections. Every time a peer attempt to connect to the local com- puter, irnetd generates the relevant pppd(8) command to starts an IrNET server handling this peer. PARAMETERS
ppp-options Override the default pppd(8) options. These options will just be passed on the command line of pppd(8). The default options are "noauth nolock connect-delay 0 idle 10" which should fit most usages. AUTHOR
Jean Tourrilhes - jt@hpl.hp.com FILES
/dev/irnet SEE ALSO
irda(7), irnet(4), pppd(8), irattach(8), irdadump(8). irda-utils 2 May 2003 IRNETD(4)
All times are GMT -4. The time now is 03:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy