Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 216720 - CRITICAL_SERVICES in sys-apps/baselayout-1.12.11.1
Summary: CRITICAL_SERVICES in sys-apps/baselayout-1.12.11.1
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 216716
  Show dependency tree
 
Reported: 2008-04-07 15:05 UTC by Lucian Muresan
Modified: 2008-04-07 17:48 UTC (History)
0 users

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


Attachments
patch to /sbin/rc (rc.diff,751 bytes, patch)
2008-04-07 15:06 UTC, Lucian Muresan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lucian Muresan 2008-04-07 15:05:47 UTC
The setup instructions of sys-apps/hprofile mention a file /etc/runlevels/<my_runlevel>/.critical which can hold a line containing the name of critical services to be started in a specific order in the respective runlevel.
I had to find out that no matter where I put 'hprunlevel', 'checkroot' and 'modules' are run before. Found the cause in /sbin/rc belonging to sys-apps/baselayout-1.12.11.1 where the CRITICAL_SERVICES which can be set by the user via the mentioned '.critical' file, is somehow ignored to force running 'checkroot' and 'modules' first. Well, I had to patch the script to include 'hprofile' BEFORE 'modules', since that's one of the purposes hprofile is meant for, switching modules autoload file for example, BEFORE the modules script loads them.

Can this 'hprofile' please be adopted here, like in the following patch please? Or,alternatively, solve this somehow still by the usage of the '.critical' file?
Comment 1 Lucian Muresan 2008-04-07 15:06:57 UTC
Created attachment 148988 [details, diff]
patch to /sbin/rc

includes 'hprofile' right after 'checkroot' and BEFORE 'modules' in the hard-coded order of critical scripts to be started in this order.
Comment 2 Martin Aspeli 2008-04-07 15:34:35 UTC
I no longer maintain hprofile (or use Linux) so I'm unable to help any further.
Sorry.
Comment 3 SpanKY gentoo-dev 2008-04-07 17:48:42 UTC
the current limited behavior is set in stone.  the idea of "critical services" has been tossed in the next major version of baselayout/openrc and the expected behavior of using depend() is used.