Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288495 - rc_start_wait from openrc-0.5.1 in /etc/rc.conf doesn't looks like milliseconds, but seconds
Summary: rc_start_wait from openrc-0.5.1 in /etc/rc.conf doesn't looks like millisecon...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Roy Marples
URL:
Whiteboard:
Keywords:
: 288494 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-10 22:04 UTC by Sylvain GRIALOU
Modified: 2009-10-15 19:27 UTC (History)
4 users (show)

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


Attachments
fix-wait-time.patch (fix-wait-time.patch,1.77 KB, text/plain)
2009-10-11 18:29 UTC, William Hubbs
Details
fix-wait-time.patch (fix-wait-time.patch,2.09 KB, text/plain)
2009-10-11 18:46 UTC, William Hubbs
Details
fix-wait-time.patch (fix-wait-time.patch,2.30 KB, text/plain)
2009-10-14 15:45 UTC, William Hubbs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain GRIALOU 2009-10-10 22:04:44 UTC
rc_start_wait from openrc-0.5.1 in /etc/rc.conf doesn't looks like milliseconds, but seconds

i first set up 100, it was taking a minute.
pull 10, take 10 seconds (lesser in fact), set it to 2 then something like 1 or 2 sec.

so i bet the description is bad, or sleep called badly

Reproducible: Always

Steps to Reproduce:
1. update to ~x86 on a fresh system
2. upgrade following guide (verifying config etc...) http://www.gentoo.org/doc/fr/openrc-migration.xml to openrc and baselayout-2 after baselayout-2 get emerged
3. set a value to rc_start_wait
4. reboot, and see
Actual Results:  
rc_start_wait doesn't looks like milliseconds, but seconds

Expected Results:  
rc_start_wait should do milliseconds, or we should correct description

it seems to slow down only for udev and syslog-ng (not related to this bug i think)
Comment 1 Duncan 2009-10-10 22:53:18 UTC
Hmm... I wonder if this is actually what's happening to me, with bug 288494?  I have mine set for 200, double the default 100.  That could well be why udev doesn't seem to be starting for me... I'm just not waiting 200 seconds for it!

I'll try it and see (and dup that bug to this one if so, as this one's then a far better diagnosis).
Comment 2 Duncan 2009-10-10 23:41:01 UTC
*** Bug 288494 has been marked as a duplicate of this bug. ***
Comment 3 William Hubbs gentoo-dev 2009-10-11 18:29:38 UTC
Created attachment 206796 [details]
fix-wait-time.patch
Comment 4 William Hubbs gentoo-dev 2009-10-11 18:46:25 UTC
Created attachment 206799 [details]
fix-wait-time.patch

Please disregard the previous patch.  I found another change that needed
to be made.

The issue is that the wait time in the code was seconds, but the
documentation says both depending on where you looked.

This patch converts it to milliseconds everywhere.
Comment 5 William Hubbs gentoo-dev 2009-10-14 12:45:53 UTC
Hi Roy,

What is the status of this bug?  

Thanks,

William

Comment 6 Roy Marples 2009-10-14 15:35:09 UTC
Looks good. Remember to bump the date on the man page each time it's edited though ;)
Comment 7 William Hubbs gentoo-dev 2009-10-14 15:45:46 UTC
Created attachment 207112 [details]
fix-wait-time.patch

Ok, disregard the previous two patches and use this one.

This patch makes all of the changes in the previous two and updates the
date on the man page.