Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 363959

Summary: sys-apps/openrc: global plug_timeout in conf.d/net does not work
Product: Gentoo Linux Reporter: Gokdeniz Karadag <gokdenizk>
Component: [OLD] baselayoutAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 295613    
Attachments: add forgotten emerge --info

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.