[1176] in RedHat Linux List
Re: How to stop pppd
daemon@ATHENA.MIT.EDU (Julien Maillard)
Sat Oct 26 21:22:32 1996
To: redhat-list@redhat.com
In-reply-to: Your message of "Sun, 27 Oct 1996 00:07:03 CDT."
<199610262309.SAA32225@premier1.premier.net>
Reply-To: maillard@vt.edu
Date: Sat, 26 Oct 1996 21:19:16 -0400
From: Julien Maillard <maillard@tulipe.val.org>
Resent-From: redhat-list@redhat.com
> How do I stop (I guess it's pppd) under RH4.0. I have it setup to a ppp
> connect when I start the system. (I did this through the GUI setup) Since I
> don't see any ppp-on or ppp-off scripts. How do I disconnect?
try this (including the patch of ifdown-ppp):
--
I set up ppp on my Intel box running RedHat 4.0 (with all updates) with
netcfg. As root i can start and end ppp connections with no problem using the
scripts from netcfg, i.e.
/etc/sysconfig/network-scripts/ifup /etc/sysconfig/network-scripts/ifcfg-ppp0
and
/etc/sysconfig/network-scripts/ifdown /etc/sysconfig/network-scripts/ifcfg-ppp0
now to run the above as a regular user, i installed sudo (contrib rpm) and set
the two above command with visudo, so i can do:
sudo /etc/sysconfig/network-scripts/ifup /etc/sysconfig/network-scripts/ifcfg-p
pp0
and
sudo /etc/sysconfig/network-scripts/ifdown /etc/sysconfig/network-scripts/ifcfg
-ppp0
[followup of my previous post]
trying to figure out what was going on, it turns out that the line:
pppdpid=`ps aul | awk '$4 ~ /^'"$daemonpid"'$/ {print $3}'`
in /etc/sysconfig/network-scripts/ifdown-ppp should be (here on my system at
least, correct me if i'm wrong):
pppdpid=`ps aulx | awk '$4 ~ /^'"$daemonpid"'$/ {print $3}'`
otherwise ps wil not report all processes including the ones that are not link
to a TTY (right?) which is the case for processes started from tkgoodstuff
when running xdm i guess... anyway, is this a bug? or is there a better way
arround this. The above change works for me at least.
Regards.
--
Julien Maillard maillard@vt.edu
Virginia Tech
tel: (540) 231 4285, fax: (540) 231 8836
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null