Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363959 - sys-apps/openrc: global plug_timeout in conf.d/net does not work
Summary: sys-apps/openrc: global plug_timeout in conf.d/net does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 295613
  Show dependency tree
 
Reported: 2011-04-17 19:36 UTC by Gokdeniz Karadag
Modified: 2011-04-19 18:15 UTC (History)
0 users

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


Attachments
add forgotten emerge --info (emerge.info,14.53 KB, text/plain)
2011-04-18 09:22 UTC, Gokdeniz Karadag
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gokdeniz Karadag 2011-04-17 19:36:06 UTC
The net.example file says that we can give plug_timeout="10" to wait for netplug/ifplugd. But actually only plug_timeout_INT style settings affect the behaviour. Even if I set a global plug_timeout variable, the netplug process backgrounds.

I'm not sure about openrc internals, but I state this as a pointer:
/lib64/rc/net/{ifplugd,netplug}.sh files have the following line in them, which seems to restrict the variable to the interface that is being configured.
eval timeout=\$plug_timeout_${IFVAR}


Reproducible: Always
Comment 1 SpanKY gentoo-dev 2011-04-18 06:04:33 UTC
please post `emerge --info` with every bug report you file
Comment 2 Gokdeniz Karadag 2011-04-18 09:22:37 UTC
Created attachment 270351 [details]
add forgotten emerge --info
Comment 3 William Hubbs gentoo-dev 2011-04-19 00:25:08 UTC
I am adding this to the stable blocker because we have an inconsistency
between the code and documentation as noted in comment #0.

I need to look at old baselayout-1 code to find out which way is
correct.
Comment 4 William Hubbs gentoo-dev 2011-04-19 18:14:19 UTC
I spoke with Robbat2 about this, and we found that baselayout-1 was also
inconsistent in this area.

As of commit 2d19735, openrc supports both a global plug_timeout setting
and an interface specific setting.

This will be part of openrc-0.8.3.
Comment 5 William Hubbs gentoo-dev 2011-04-19 18:15:22 UTC
I would like to thank Robin Johnson for this fix.