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

Bug 537304

Summary: sys-apps/openrc-0.13.8: regression: openrc crashes if a service has the same name as the runlevel it is in
Product: Gentoo Hosted Projects Reporter: William Hubbs <williamh>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal CC: alexanderyt, klaus.kreil, whissi
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description William Hubbs gentoo-dev 2015-01-22 01:58:40 UTC
Here is the setup to create this crash:

1. create a new runlevel, /etc/init.d/foobar.
2. Add a service to this runlevel that has the same name as the
runlevel.
3. Stack the default runlevel in this new runlevel (the stacking is
irrelivent, I'm just suggesting it so all of your other services do not
go down)

Or, if you want, just create a service called default and add it to the
default runlevel.

Now, OpenRC will crash when you try to go into the new runlevel.

This worked in 0.12.4, so it is a regression.
Comment 1 William Hubbs gentoo-dev 2015-01-22 02:02:00 UTC
The workaround for this is to make sure that your services do not have
the same names as the runlevels.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2015-03-16 12:53:24 UTC
*** Bug 543506 has been marked as a duplicate of this bug. ***
Comment 3 William Hubbs gentoo-dev 2015-05-03 19:42:16 UTC
The following pull request has been submitted on github for this issue;
I will look into it.

https://github.com/openrc/openrc/pull/53
Comment 4 William Hubbs gentoo-dev 2015-05-06 15:54:07 UTC
This is included in 0.15.1.