This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
Bug 145398 - ifdown doesn't take ppp down.
ifdown doesn't take ppp down.
Status: CLOSED DUPLICATE of bug 142436
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
Depends On:
Blocks: FC5Target
  Show dependency treegraph
 
Reported: 2005-01-17 18:33 EST by Ralph Loader
Modified: 2014-03-16 22:51 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-03-05 07:45:58 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
sh -x ifdown-ppp IHug (1.06 KB, text/plain)
2005-01-22 19:13 EST, Ralph Loader
no flags Details

  None (edit)
Description Ralph Loader 2005-01-17 18:33:47 EST
Description of problem:

doing an ifdown on a ppp connection doesn't do anything.

Version-Release number of selected component (if applicable):

initscripts-8.03-1
ppp-2.4.2-7
wvdial-1.54.0-3

How reproducible:

Every time

Steps to Reproduce:


1. Use system-config-network to create network device IHug with
hardware device Modem0 on /dev/ttyS1
2. ifup IHug and wait for network to come up.
3. ifdown IHug
  
Actual results:

ppp stays up.

Expected results:

ppp down.

Additional info:

$ cat /etc/sysconfig/networking/devices/ifcfg-IHug
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
ONBOOT=no
USERCTL=yes
PEERDNS=yes
TYPE=Modem
DEVICE=ppp0
BOOTPROTO=dialup
AC=off
BSDCOMP=off
VJCCOMP=off
CCP=off
PC=off
VJ=off
LINESPEED=115200
MODEMPORT=/dev/ttyS1
PROVIDER=IHug
DEFROUTE=yes
PERSIST=no
PAPNAME=suckfish
WVDIALSECT=IHug
MODEMNAME=Modem0
DEMAND=no

$ cat /etc/wvdial.conf
[Modem0]
Modem = /dev/ttyS1
Baud = 115200
SetVolume = 1
Dial Command = ATDT
Init1 = ATZ
Init3 = ATM0L1
FlowControl = CRTSCTS
[Dialer IHug]
Username = ...
Password = ...
Phone = 087300777
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 W1 S0=0 &C1 &D2 +FCLASS=0
Inherits = Modem0
Comment 1 Bill Nottingham 2005-01-17 22:51:27 EST
Can you post the output of 'sh -x ifdown IHug'?
(You may need to run sh -x on ifdown-ppp).
Comment 2 Ralph Loader 2005-01-22 19:13:23 EST
Created attachment 110096 [details]
sh -x ifdown-ppp IHug

The ifdown scripts seem to be doing their job.	They are sending SIGTERM to the
ppp-watch process.
Comment 3 Ralph Loader 2005-01-22 19:18:31 EST
Here's strace's of the ppp-watch processes.  (I used strace -p after
connecting, so only the shutdown of ppp-watch is present).  There were
two ppp-watch processes running - is that normal?

ppp-watch seems to be looking for the wrong file -
/var/run/ppp-IHug.pid - that doesn't exist but ppp-ifcfg-IHug.pid does.

# cat ppp-watch-7963.trace
--- SIGTERM (Terminated) @ 0 (0) ---
sigreturn()                             = ? (mask now [HUP INT TERM
CHLD IO])
open("/var/run/ppp-IHug.pid", O_RDONLY) = -1 ENOENT (No such file or
directory)
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7ff4928) = 8013
waitpid(8013, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 8013
write(4, "#", 1)                        = 1
close(4)                                = 0
unlink("/var/run/pppwatch-ppp0.pid")    = 0
exit_group(35)                          = ?

# cat ppp-watch-7949.trace
read(3, "#", 1)                         = 1
write(2, "Failed to activate IHug with err"..., 38) = 38
exit_group(35)                          = ?
Comment 4 Ralph Loader 2005-01-22 19:27:32 EST
In case it's helpful, here are the ppp-watch and pppd command lines,
as per ps:

 8181 ?        S      0:00 /sbin/ppp-watch IHug
 8195 ?        Ss     0:00 /sbin/ppp-watch IHug
 8197 ttyS1    Ss+    0:00 pppd lock modem crtscts asyncmap 00000000
defaultroute usepeerdns user suckfish remotename ifcfg-IHug nodetach
/dev/ttyS1 115200 ipparam ifcfg-IHug linkname ifcfg-IHug call
ifcfg-IHug noauth
Comment 5 Miloslav Trmač 2006-03-05 07:45:58 EST

*** This bug has been marked as a duplicate of 142436 ***

Note You need to log in before you can comment on or make changes to this bug.