Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537304 - sys-apps/openrc-0.13.8: regression: openrc crashes if a service has the same name as the runlevel it is in
Summary: sys-apps/openrc-0.13.8: regression: openrc crashes if a service has the same ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
: 543506 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-22 01:58 UTC by William Hubbs
Modified: 2015-05-06 15:54 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.