Summary: | sys-apps/openrc-0.7.0: bootmisc causes timeout cleaning /tmp with many files | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Walch <walch.martin> |
Component: | [OLD] baselayout | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | serkan |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Martin Walch
2011-03-25 10:18:40 UTC
There is a "-timeout" keyword which we could add to the depend function of bootmisc to signal that other services should not wait for it. But, would it be safe to do this? i dont quite follow ... what does that keyword do exactly ? if another init.d script has "after bootmisc", then it should not be started until bootmisc is done executing. otherwise, if it starts making stuff in /tmp/, those files could be blown away. The only thing the man page says about the -timeout keyword is, "do not time out waiting for that service". I am not sure how this interacts with after. Looking at the code, it looks like -timeout may mean wait forever for this service to complete, which is what we need. Here is the test we need to try: 1) Find a way for bootmisc to run longer than 60 seconds and add -timeout to the keywords line for it. 2) make sure you know which services have 'after bootmisc' in depend. 3) turn on parallel startup. 4) reboot and make sure that the services that need to start after bootmisc is completed do so. i imagine putting a "sleep 60" in there will make it take 60sec+ The test in comment #4 passed, so commit c7c278d adds the -timeout keyword to the bootmisc script. This will be available in the next release of openrc. |