Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251839 - openrc-0.4.0 breaks net.ppp0: pppd does not exit upon stopping the service
Summary: openrc-0.4.0 breaks net.ppp0: pppd does not exit upon stopping the service
Status: RESOLVED DUPLICATE of bug 252621
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://www.marples.name/projects/open...
Whiteboard:
Keywords:
: 251861 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-21 10:55 UTC by M. B.
Modified: 2008-12-26 17:21 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openrc-0.4.1-pppd-send-sigterm.patch (openrc-0.4.1-pppd-send-sigterm.patch,487 bytes, patch)
2008-12-23 15:58 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description M. B. 2008-12-21 10:55:09 UTC
I have a small home-router running gentoo. It connects my LAN to the outside world via DSL. Due to provider restrictions i get disconnected every 24h. In order to make this as painless as possible i have set a cronjob to do it automatically in the early morning hours.

Upgrading to OpenRC-0.4.0 however broke this:
* WARNING: you are stopping a boot service
* Bringing down interface ppp0
*   Loaded modules: ip6to4 dhcpcd udhcpc dhclient system pppd iproute2 ifconfig ssidnet wpa_supplicant iwconfig ipppd ifplugd netplugd macnet macchanger ccwgroup tuntap br2684ctl bonding arping apipa
*   Stopping pppd on ppp0
 [ !! ]
* Bringing up interface ppp0
*   Loaded modules: apipa arping bonding tuntap ccwgroup macchanger macnet wpa_supplicant ssidnet iproute2 pppd system ip6to4
*   Starting pppd in ppp0...
*   start-stop-daemon: /usr/sbin/pppd is already running

*   Failed to start PPP
                                                 [ !! ]
*   Backgrounding ...
* WARNING: net.ppp0 has started, but is inactive

The connections is severed at that point, but pppd is still running.
Doing a manual `killall pppd` makes pppd exit with signal 15 and I am able to start it again as usual by issuing `/etc/init.d/net.ppp0 start`.

I "resolved" this issue for me by downgrading OpenRC back to 0.3.0-r1, reinstalling the old /etc/init.d/net.lo file. I did not, however, downgrade udev-135-r2 back to stable 124-r1, which also upgraded in the process of upgrading to openrc-0.4.0. The net.ppp0 alias works as expected again now.

Reproducible: Always

Steps to Reproduce:
1. Upgrade openrc to version 0.4.0 (required upgrading to udev-135-r2 and cryptsetup-1.0.6-r2 for me)
2. issue either `/etc/init.d/net.ppp0 stop` or `/etc/init.d/net.ppp0 restart`
Actual Results:  
pppd does not exit, net.ppp0 init-script times out and the service can not be restarted.

Expected Results:  
pppd should terminate and start up again

penelope test # emerge --info
Portage 2.2_rc18 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.7-r2, 2.6.26-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r4-i686-Pentium_II_-Deschutes-with-glibc2.0
Timestamp of tree: Sat, 20 Dec 2008 23:45:02 +0000
distcc 3.0 i686-pc-linux-gnu [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch webrsync-gpg"
GENTOO_MIRRORS="http://213.186.33.37/gentoo-distfiles/ ftp://ftp.twaren.net/Linux/Gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/sunrise /usr/portage/local/mine"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl authdaemond automount bash-completion berkdb bzip2 caps cgi cli cracklib crypt ctype cups curl daemon dbus dbx dri encode expat fastcgi force-cgi-redirect fortran ftp gd gdbm gif glibc-omitfp gnutls gpm hash iconv icu idn imap ipv6 isdnlog jpeg jpeg2k jpgraph logwatch madwifi magic masquerade midi mudflap mysql mysqli ncurses nls nptl nptlonly oav offensive openmp pam passwordsave pcre perl php png pop3d pppd python readline reflection resolvconf session slp sockets spl sqlite ssl symlink sysfs syslog tcpd threads tidy tiff tokenizer truetype unicode upnp urandom wifi x86 xml xmlrpc xorg xsl zero-penalty-hit zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


PS: I'm on my holidays now. I can provide further infos about my box upon request, but it might take a while for me to answer.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-12-21 15:02:02 UTC
*** Bug 251861 has been marked as a duplicate of this bug. ***
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-12-21 15:07:46 UTC
Same problem here:

Igor:~ # /etc/init.d/net.ppp0 start
* Bringing up interface ppp0
*   Starting pppd in ppp0...                                          [ ok ]
*   received address XX.XX.XXX.XXX
* WARNING: net.ppp0 not under our control, aborting
Igor:~ # /etc/init.d/net.ppp0 status
* status: started
Igor:~ # /etc/init.d/net.ppp0 stop
* Bringing down interface ppp0
*   Stopping pppd on ppp0                                             [ !! ]
Igor:~ # /etc/init.d/net.ppp0 status
* status: stopped
Igor:~ # ps -A | grep pppd
 5288 ?        00:00:00 pppd
Igor:~ # /etc/init.d/net.ppp0 start
* Bringing up interface ppp0
*   Starting pppd in ppp0...
*   start-stop-daemon: /usr/sbin/pppd is already running
*   Failed to start PPP                                               [ !! ]
* WARNING: net.ppp0 not under our control, aborting
Igor:~ #


This is my /etc/conf.d/net file:

modules="iproute2"
config_eth0="192.168.0.254 netmask 255.255.255.0"
config_eth1="null"
config_ppp0="ppp"
link_ppp0="eth1"
plugins_ppp0="pppoe"
username_ppp0="XXXXXXXXXXXXXXXXXXXXXX"
pppd_ppp0="updetach defaultroute"


# emerge --info
Portage 2.1.6.1 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25.20
i686)
=================================================================
System uname: Linux-2.6.25.20-i686-Pentium_III_-Coppermine-with-glibc2.0
Timestamp of tree: Sat, 20 Dec 2008 19:00:01 +0000
app-shells/bash:     3.2_p48
dev-lang/python:     2.5.2-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.0
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.63
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -mtune=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/opennap-ng"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf
/etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/ssl /etc/terminfo
/etc/udev/rules.d"
CXXFLAGS="-march=pentium3 -mtune=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --jobs=1"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned
sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j1 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/layman/poly-c"
SYNC="rsync://192.168.0.254/gentoo-portage"
USE="acl acpi apache2 berkdb bzip2 cli cracklib crypt dri fam fastcgi gdbm
gnutls iconv innodb ipv6 isdnlog libwww maildir midi mmx mudflap ncurses nls
nptl nptlonly openmp pam pcre pppd readline reflection session slang snmp spl
sse ssl sysfs unicode x86 xml xml2 xorg zlib" ELIBC="glibc"
INPUT_DEVICES="keyboard" KERNEL="linux" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-12-21 15:32:18 UTC
probably not my day today... trying to revert status to NEW...
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-12-22 20:21:57 UTC
There's an upstream bug about this (see URL).
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-12-23 15:58:09 UTC
Created attachment 176228 [details, diff]
openrc-0.4.1-pppd-send-sigterm.patch

Don't bother the patch being versioned 0.4.1. It applies to 0.4.0 as well and fixes the problem of pppd not getting killed on stop.

If you have saved this file as /tmp/openrc-0.4.1-pppd-send-sigterm.patch apply it with
patch /lib/rc/net/pppd.sh /tmp/openrc-0.4.1-pppd-send-sigterm.patch
Comment 6 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-12-26 15:59:24 UTC
For the record, experience the same issue, after upgrading my home router/server to openrc-0.4.1. For now, I can restart the net.ppp0 service via reboot or if I kill the ppp daemon manually and zap the init script. 
Comment 7 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-12-26 17:21:08 UTC

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