<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>141832</bug_id>
          
          <creation_ts>2006-07-26 16:16 0000</creation_ts>
          <short_desc>net.ppp0 stop doesn&apos;t call /etc/ppp/ip-down.local (with sys-apps/baselayout-1.12.1)</short_desc>
          <delta_ts>2006-08-14 08:03:28 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>baselayout</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>InSVN</keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>stefan@the2masters.de</reporter>
          <assigned_to>uberlord@gentoo.org</assigned_to>
          <cc>net-dialup@gentoo.org</cc>
    
    <cc>sbriesen@gentoo.org</cc>
    
    <cc>stefan@the2masters.de</cc>

      

      
          <long_desc isprivate="0">
            <who>stefan@the2masters.de</who>
            <bug_when>2006-07-26 16:16:07 0000</bug_when>
            <thetext>I&apos;m using the new baselayout to get a pppoe-connection. My /etc/conf.d/net:
config_ppp0=( &quot;ppp&quot; )
plugins_ppp0=( &quot;pppoe&quot; )
pppd_ppp0=&quot;defaultroute&quot;
link_ppp0=( &quot;eth1&quot; )
username_ppp0=( &quot;xxx&quot; )

I&apos;ve a program updating my dyndns-account, which is started by /etc/ppp/ip-up.local and stopped by /etc/ppp/ip-up.local.

It&apos;s started without problems, but when I do a /etc/init.d/net.ppp0 stop it&apos;s not stopped.
But: If I pull out the cable from the pppoe-modem, the connection drops, the status of the /etc/init.d/net.ppp0 scripts gets inactive and the program is stopped (=&gt; the /etc/ppp/ip-down.local-Script is working!). After plugging the cable in again the program is also started properly again...

A short search in /lib/rcscripts/net/pppd.sh lists me the following line which stops the ppp-connection:
start-stop-daemon --stop --exec /usr/sbin/pppd --pidfile &quot;${pidfile}&quot;
When I manually stop the ppp-daemon with this command (by replacing &quot;${pidfile}&quot; with /var/run/ppp-ppp0.pid), /etc/ppp/ip-up.local has also stopped my dyndns-program!
Only if I stop it via /etc/init.d/net.ppp0 the script /etc/ppp/ip-down.local seems not to be run.
It&apos;s not really important that this feature works for my dyndns-script, but I have thought about some advanced routing, then it would become important...

I don&apos;t know why or how to resolv this &quot;anomaly&quot;, maybe the ppp-connection is set down or something like this before ppp is stopped, so that ppp doesn&apos;t run etc/ppp/ip-down.local?!

It&apos;s reproducible on several machines, all running sys-apps/baselayout-1.12.1 and net-dialup/ppp-2.4.3-r16.
I&apos;ve not tried if the problem exists with older versions of the packages.
Any more infos needed?

# emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17.6 i686)
=================================================================
System uname: 2.6.17.6 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium3 -O2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-march=pentium3 -O2 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distcc distlocks metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/&quot;
LANG=&quot;de_DE.utf8&quot;
LC_ALL=&quot;de_DE.utf8&quot;
LDFLAGS=&quot;-Wl,-O1&quot;
MAKEOPTS=&quot;-j 9&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://ftp.belnet.be/gentoo-portage&quot;
USE=&quot;x86 bzip2 ipv6 libwww ncurses nls nptl perl python readline tcpd threads unicode userlocales elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-08-01 04:13:09 0000</bug_when>
            <thetext>I cannot replicate this on my simple pppoe setup - net-dial want to test?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2006-08-01 13:04:25 0000</bug_when>
            <thetext>I can confirm this behaviour. Since one of the last versions of baselayout, ip-down.local isn&apos;t called anymore, though ip-up.local is. I do some &quot;nasty&quot; things in ip-up/ip-down (i.e. VPN restart, etc.), so I know well if it is called or not (SYSLOG entries are written).

But I haven&apos;t investigated further...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2006-08-14 05:34:52 0000</bug_when>
            <thetext>Looks like your turf, Roy.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-08-14 05:47:50 0000</bug_when>
            <thetext>Created an attachment (id=94227)
Only send the kill signal once

Patch to /lib/rcscripts/sh/rc-daemon.sh

As I cannot replicate this I have looked over the ppp source and it seems to abort when &gt;1 TERM signal is sent. This patch should fix.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stefan@the2masters.de</who>
            <bug_when>2006-08-14 06:10:00 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Created an attachment (id=94227) [edit]
&gt; Only send the kill signal once
&gt; 
&gt; Patch to /lib/rcscripts/sh/rc-daemon.sh
&gt; 
&gt; As I cannot replicate this I have looked over the ppp source and it seems to
&gt; abort when &gt;1 TERM signal is sent. This patch should fix.
&gt; 

Yes, the patch fixes the problem. Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-08-14 06:24:18 0000</bug_when>
            <thetext>In SVN - will appear in baselayout-1.12.5</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-08-14 08:03:28 0000</bug_when>
            <thetext>Fixed in 1.12.4-r4</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>94227</attachid>
            <date>2006-08-14 05:47 0000</date>
            <desc>Only send the kill signal once</desc>
            <filename>a</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IHNiaW4vcmMtZGFlbW9uLnNoCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHNiaW4vcmMtZGFlbW9uLnNo
CShyZXZpc2lvbiAyMTgyKQorKysgc2Jpbi9yYy1kYWVtb24uc2gJKHdvcmtpbmcgY29weSkKQEAg
LTE1NSw3ICsxNTUsNyBAQAogCQkJCSR7ZX0gfHwgcmV0dXJuIDAKIAkJCWZpCiAJCWVsc2UKLQkJ
CWtpbGwgLXMgIiR7c2lnbmFsfSIgIiR7cGlkfSIgMj4vZGV2L251bGwKKwkJCVtbICR7aX0gPT0g
IjAiIF1dICYmIGtpbGwgLXMgIiR7c2lnbmFsfSIgIiR7cGlkfSIgMj4vZGV2L251bGwKIAkJCVtb
ICEgLWQgIi9wcm9jLyR7cGlkfSIgXV0gJiYgcmV0dXJuIDAKIAkJZmkKIAkJTENfQUxMPUMgL2Jp
bi9zbGVlcCAiJHtzfSIK
</data>        

          </attachment>
    </bug>

</bugzilla>