ppp problem when shutting down

ppp problem when shutting down

Post by Xavier Houppert » Fri, 03 Aug 2001 14:52:14



Hello,

I am using a leased line to connect 2 linux server with ppp.
The command line is /usr/sbin/pppd /dev/ttyC0 38400
192.9.201.20:192.9.201.21 persist

the remote server is/was redhat 6.0

The local was redhat 5.2 with the option 'passive'

Now, I upgraded to 7.1 and when I try to shut the server down, it fails on
killing the ppp connection (and hangs before unmounting the disks ...)
At the Killall action, he cut the lines, but they connect again 5 sec later
...

any ideas ? of course I could remove the 'persist' option, but in case of
phone line failure, I need the modem AND the ppp the reestablish the
connection automatically.

thanks for help,

xavier.

 
 
 

ppp problem when shutting down

Post by Bill Unr » Sat, 04 Aug 2001 01:54:51



]Hello,

]I am using a leased line to connect 2 linux server with ppp.
]The command line is /usr/sbin/pppd /dev/ttyC0 38400
]192.9.201.20:192.9.201.21 persist

]the remote server is/was redhat 6.0

]The local was redhat 5.2 with the option 'passive'

]Now, I upgraded to 7.1 and when I try to shut the server down, it fails on
]killing the ppp connection (and hangs before unmounting the disks ...)
]At the Killall action, he cut the lines, but they connect again 5 sec later
]...

Put a K05ppp file in /etc/rc.d/rc6.d which will close down the ppp link
on shutdown.
Ie, this file should issue a killall pppd.
killing pppd should not allow the persist to work, since it is pppd that
does the persist option and it is dead. Or did you put pppd into
/etc/inittab or something like that?

]any ideas ? of course I could remove the 'persist' option, but in case of
]phone line failure, I need the modem AND the ppp the reestablish the
]connection automatically.

]thanks for help,

]xavier.

 
 
 

ppp problem when shutting down

Post by Xavier Houppert » Sun, 05 Aug 2001 16:02:15


When I issue a killall pppd or killall -HUP pppd, the connections goes down
and up again after 20 sec and the computer completely hangs (never seen that
...)

If i kill the process one by one using the pid : no problems.

any idea ?




> ]Hello,

> ]I am using a leased line to connect 2 linux server with ppp.
> ]The command line is /usr/sbin/pppd /dev/ttyC0 38400
> ]192.9.201.20:192.9.201.21 persist

> ]the remote server is/was redhat 6.0

> ]The local was redhat 5.2 with the option 'passive'

> ]Now, I upgraded to 7.1 and when I try to shut the server down, it fails
on
> ]killing the ppp connection (and hangs before unmounting the disks ...)
> ]At the Killall action, he cut the lines, but they connect again 5 sec
later
> ]...

> Put a K05ppp file in /etc/rc.d/rc6.d which will close down the ppp link
> on shutdown.
> Ie, this file should issue a killall pppd.
> killing pppd should not allow the persist to work, since it is pppd that
> does the persist option and it is dead. Or did you put pppd into
> /etc/inittab or something like that?

> ]any ideas ? of course I could remove the 'persist' option, but in case of
> ]phone line failure, I need the modem AND the ppp the reestablish the
> ]connection automatically.

> ]thanks for help,

> ]xavier.

 
 
 

ppp problem when shutting down

Post by Bill Unr » Mon, 06 Aug 2001 04:43:05



]When I issue a killall pppd or killall -HUP pppd, the connections goes down
]and up again after 20 sec and the computer completely hangs (never seen that
]...)

Well,I sure would not use -HUP as that is hangup which ppp interprets as
teh modem having lost connection. killall pppd will kill it but it will
run its closedown routines first. do youhave something there?
Do you have something in /etc/inittab regarding ppp?

]If i kill the process one by one using the pid : no problems.

How?

]any idea ?



]>
]> ]Hello,
]>
]> ]I am using a leased line to connect 2 linux server with ppp.
]> ]The command line is /usr/sbin/pppd /dev/ttyC0 38400
]> ]192.9.201.20:192.9.201.21 persist
]>
]> ]the remote server is/was redhat 6.0
]>
]> ]The local was redhat 5.2 with the option 'passive'
]>
]> ]Now, I upgraded to 7.1 and when I try to shut the server down, it fails
]on
]> ]killing the ppp connection (and hangs before unmounting the disks ...)
]> ]At the Killall action, he cut the lines, but they connect again 5 sec
]later
]> ]...
]>
]> Put a K05ppp file in /etc/rc.d/rc6.d which will close down the ppp link
]> on shutdown.
]> Ie, this file should issue a killall pppd.
]> killing pppd should not allow the persist to work, since it is pppd that
]> does the persist option and it is dead. Or did you put pppd into
]> /etc/inittab or something like that?
]>
]>
]>
]> ]any ideas ? of course I could remove the 'persist' option, but in case of
]> ]phone line failure, I need the modem AND the ppp the reestablish the
]> ]connection automatically.
]>
]> ]thanks for help,
]>
]> ]xavier.
]>
]>

 
 
 

ppp problem when shutting down

Post by Xavier Houppert » Tue, 07 Aug 2001 19:28:16





> ]When I issue a killall pppd or killall -HUP pppd, the connections goes
down
> ]and up again after 20 sec and the computer completely hangs (never seen
that
> ]...)

> Well,I sure would not use -HUP as that is hangup which ppp interprets as
> teh modem having lost connection. killall pppd will kill it but it will
> run its closedown routines first. do youhave something there?
> Do you have something in /etc/inittab regarding ppp?
no

> ]If i kill the process one by one using the pid : no problems.

> How?

I kill the pppd one by one (i have got 5 of them) and after that, i can
shutdown without problems.

- Show quoted text -

> ]any idea ?





> ]>
> ]> ]Hello,
> ]>
> ]> ]I am using a leased line to connect 2 linux server with ppp.
> ]> ]The command line is /usr/sbin/pppd /dev/ttyC0 38400
> ]> ]192.9.201.20:192.9.201.21 persist
> ]>
> ]> ]the remote server is/was redhat 6.0
> ]>
> ]> ]The local was redhat 5.2 with the option 'passive'
> ]>
> ]> ]Now, I upgraded to 7.1 and when I try to shut the server down, it
fails
> ]on
> ]> ]killing the ppp connection (and hangs before unmounting the disks ...)
> ]> ]At the Killall action, he cut the lines, but they connect again 5 sec
> ]later
> ]> ]...
> ]>
> ]> Put a K05ppp file in /etc/rc.d/rc6.d which will close down the ppp link
> ]> on shutdown.
> ]> Ie, this file should issue a killall pppd.
> ]> killing pppd should not allow the persist to work, since it is pppd
that
> ]> does the persist option and it is dead. Or did you put pppd into
> ]> /etc/inittab or something like that?
> ]>
> ]>
> ]>
> ]> ]any ideas ? of course I could remove the 'persist' option, but in case
of
> ]> ]phone line failure, I need the modem AND the ppp the reestablish the
> ]> ]connection automatically.
> ]>
> ]> ]thanks for help,
> ]>
> ]> ]xavier.
> ]>
> ]>

 
 
 

ppp problem when shutting down

Post by Bill Unr » Wed, 08 Aug 2001 04:12:31



]I kill the pppd one by one (i have got 5 of them) and after that, i can
]shutdown without problems.

Why in the world would you have 5 pppd running. One will handle all the
traffic between the two machines fine. Why 5?

]> ]> ]I am using a leased line to connect 2 linux server with ppp.
]> ]> ]The command line is /usr/sbin/pppd /dev/ttyC0 38400
]> ]> ]192.9.201.20:192.9.201.21 persist

 
 
 

ppp problem when shutting down

Post by Xavier Houppert » Wed, 08 Aug 2001 14:51:08





> ]I kill the pppd one by one (i have got 5 of them) and after that, i can
> ]shutdown without problems.

> Why in the world would you have 5 pppd running. One will handle all the
> traffic between the two machines fine. Why 5?

Because I have 5 modem with 5 leased lines connecting to 5 different servers
...
anyway, how could i kill them softly ?
Quote:

> ]> ]> ]I am using a leased line to connect 2 linux server with ppp.
> ]> ]> ]The command line is /usr/sbin/pppd /dev/ttyC0 38400
> ]> ]> ]192.9.201.20:192.9.201.21 persist

 
 
 

ppp problem when shutting down

Post by Michael Lee Yoh » Thu, 09 Aug 2001 03:10:03


Quote:>>When I issue a killall pppd or killall -HUP pppd, the connections goes
>>down and up again after 20 sec and the computer completely hangs
>>(never seen that)
> I kill the pppd one by one (i have got 5 of them) and after that, i
> can shutdown without problems.

Instead of "HUP" (signal 1, hangup), you should probably specify "TERM"
(signal 15, terminate).  Hangups are often handled by signal handlers to
re-initializes its processes.

--


Software Developer, Engineering Services
Red Hat, Inc.

QUIPd 0.12:
-> Democracy is a form of government that substitutes election by the
-> incompetent many for appointment by the corrupt few.
-> - George Bernard Shaw (1856-1950)

 
 
 

ppp problem when shutting down

Post by Bill Unr » Thu, 09 Aug 2001 04:48:15





]> ]I kill the pppd one by one (i have got 5 of them) and after that, i can
]> ]shutdown without problems.
]>
]> Why in the world would you have 5 pppd running. One will handle all the
]> traffic between the two machines fine. Why 5?
]Because I have 5 modem with 5 leased lines connecting to 5 different servers
]...
]anyway, how could i kill them softly ?

Write a root script which does kill to each of the ppp in turn, and then running
halt  or shutdown -h.
I can see no reason why killall pppd would not work, but you say it does not, so
shut them down one at a time.

#!/bin/bash
for i in `pidof pppd`
do
kill $i
sleep 1
done
shutdown -h now
]>
]> ]> ]> ]I am using a leased line to connect 2 linux server with ppp.
]> ]> ]> ]The command line is /usr/sbin/pppd /dev/ttyC0 38400
]> ]> ]> ]192.9.201.20:192.9.201.21 persist
]>
]>

 
 
 

1. startup ppp and shut down ppp

hey,

when i want to get on line i usually usally use usernet.  i hit the
toggle interface button and it starts.  well, sometimes it works and
sometimes it doesn't.  what i mean by not working is that it'll dial
and start communicating but i don't always get a green light.

and also, is it safe to just unclick the interface to shut down the
modem?

thanks a bunch.

2. is /proc/cpuinfo accurate ?

3. Problem with powering down when shutting down

4. adding bsd partions/slice on a another drive?

5. How to shut-off on a shut-down?

6. Actiontec modem (was Re: Call Waiting Modems / Low Connect Speeds)

7. PPP: pppd never shuts down any answers?

8. Metro-X with Dell CP M166 T

9. Shutting down PPP

10. how to shut down ppp connection

11. Shutting down PPP on _low_ traffic

12. shutting down ppp?!

13. playing video shuts down ppp