Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436044 - net-misc/networkmanager - with a long INACTIVE_TIMEOUT, nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/10-openrc-status' exited with error status 1
Summary: net-misc/networkmanager - with a long INACTIVE_TIMEOUT, nm-dispatcher.action:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Nirbheek Chauhan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-23 22:19 UTC by cyberbat
Modified: 2012-10-26 23:02 UTC (History)
4 users (show)

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


Attachments
/etc/NetworkManager/dispatcher.d/10-openrc-status (10-openrc-status,1.06 KB, text/plain)
2012-09-24 18:12 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cyberbat 2012-09-23 22:19:24 UTC
I have tried on net-misc/networkmanager-0.9.4.0-r6 and 0.9.6.0. 

I use networkmanager to connect my notebook to wifi. To make openssh and nfsmount start correctly after networkmanager, I've set

INACTIVE_TIMEOUT=20

in /etc/conf.d/NetworkManager .

So it correctly gets wifi up (it takes near 14 seconds) and after it gives me this error:


 * Starting NetworkManager ...                                                                        [ ok ]Connecting...........        6s * Restoring Mixer Levels ...
nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/10-openrc-status' exited with erro 1.  [ ok ]

Sorry for disordered output, but It's as I get. Everything works fine after it.

emerge --info
Portage 2.1.11.9 (default/linux/x86/10.0/desktop/kde, gcc-4.5.4, glibc-2.15-r2, 3.4.9-gentoo i686)
=================================================================
System uname: Linux-3.4.9-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_T5450_@_1.66GHz-with-gentoo-2.1
Timestamp of tree: Sun, 23 Sep 2012 19:45:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/home/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news nodoc noinfo noman parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://gentoo.bloodhost.ru/ ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j3"
PKGDIR="/home/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://gentoo.bloodhost.ru/gentoo-portage"
USE="X a52 aac acl acpi alsa bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus declarative device-mapper dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gif gnutls gpm gtk iconv icu idn jpeg jpeg2k kde kipi lcms libnotify lzma mad mmx mng modules mp3 mp4 mpeg mudflap ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd pulseaudio qt3support qt4 readline sdl session sse sse2 sse3 ssl ssse3 startup-notification svg theora threads tiff truetype udev udisks unicode upower usb v4l vlc vorbis wavpack wxwidgets x264 x86 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ALSA_CARDS="hda-intel usb-audio" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="caps lvm" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-09-24 17:30:36 UTC
openssh and nfsmount will start correctly after networkmanager even with INACTIVE_TIMEOUT=0. The only difference is, they will be automatically started by openrc in the background after networkmanager finishes establishing a connection, so you won't see the "Starting sshd" text on your screen.

In other words, INACTIVE_TIMEOUT exists only for cosmetic purposes; it was added because some users want to see messages about every started daemon even if it makes the boot time longer.
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-09-24 18:12:31 UTC
Created attachment 324866 [details]
/etc/NetworkManager/dispatcher.d/10-openrc-status

Please try the attached /etc/NetworkManager/dispatcher.d/10-openrc-status file.
Comment 3 cyberbat 2012-09-24 21:57:34 UTC
(In reply to comment #2)
> Created attachment 324866 [details]
> /etc/NetworkManager/dispatcher.d/10-openrc-status
> 
> Please try the attached /etc/NetworkManager/dispatcher.d/10-openrc-status
> file.

Seems to work for me. 

Спасибо. (Thank you)
Comment 4 cyberbat 2012-09-24 22:00:32 UTC
Just one little problem. Really little, but there is no newline between Networkmanager timer and next string. So I got something like

Connecting...........        6s * Restoring Mixer Levels ...      [ ok ]
Comment 5 Pacho Ramos gentoo-dev 2012-10-07 08:27:01 UTC
(In reply to comment #1)
> openssh and nfsmount will start correctly after networkmanager even with
> INACTIVE_TIMEOUT=0. The only difference is, they will be automatically
> started by openrc in the background after networkmanager finishes
> establishing a connection, so you won't see the "Starting sshd" text on your
> screen.
> 
> In other words, INACTIVE_TIMEOUT exists only for cosmetic purposes; it was
> added because some users want to see messages about every started daemon
> even if it makes the boot time longer.

Well, I needed to set it to "1" because, otherwise, never get prompt in consoles if no connection was available at all
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-10-26 23:02:00 UTC
Fixed in networkmanager-0.9.6.4. Thanks for reporting and testing.

>*networkmanager-0.9.6.4 (26 Oct 2012)
>
>  26 Oct 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  +files/10-openrc-status-r3, networkmanager-0.8.4.0-r2.ebuild,
>  networkmanager-0.9.4.0-r5.ebuild, networkmanager-0.9.4.0-r6.ebuild,
>  networkmanager-0.9.4.0-r7.ebuild, networkmanager-0.9.6.0.ebuild,
>  +networkmanager-0.9.6.4.ebuild:
>  Version bump with various bugfixes. Update dispatcher script to correctly
>  detect openrc service status at boot (bug #436044, thanks to cyberbat).
>  Update license.