Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298826 - sys-apps/openrc: rc-status shows stacked runlevels under "manual" runlevel
Summary: sys-apps/openrc: rc-status shows stacked runlevels under "manual" runlevel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-29 05:40 UTC by SpanKY
Modified: 2015-04-21 19:36 UTC (History)
1 user (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 SpanKY gentoo-dev 2009-12-29 05:40:12 UTC
i'm in runlevel "wireless" which has two stacked runlevels ("network" and "default").  all services in the stacked runlevels are listed as manually started.

Runlevel: wireless
 network                                [  started  ]
 net.wlan0                              [  started  ]
Stacked Runlevel: network
 rpcbind                                [  started  ]
 xinetd                                 [  started  ]
 openvpn                                [  started  ]
 samba                                  [  started  ]
 ntpd                                   [  started  ]
 sshd                                   [  started  ]
Stacked Runlevel: default
 metalog                                [  started  ]
 acpid                                  [  started  ]
 xdm                                    [  started  ]
 alsasound                              [  started  ]
 cpufrequtils                           [  started  ]
 dcron                                  [  started  ]
 local                                  [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 sysfs                                  [  started  ]
 udev-mount                             [  started  ]
 xdm-setup                              [  started  ]
 dbus                                   [  started  ]
 hald                                   [  started  ]
 xdm                                    [  started  ]
 alsasound                              [  started  ]
 rpcbind                                [  started  ]
Dynamic Runlevel: manual
 xinetd                                 [  started  ]
 metalog                                [  started  ]
 openvpn                                [  started  ]
 cpufrequtils                           [  started  ]
 dcron                                  [  started  ]
 ntpd                                   [  started  ]
 samba                                  [  started  ]
 sshd                                   [  started  ]
 local                                  [  started  ]
Comment 1 Jory A. Pratt gentoo-dev 2010-07-13 03:51:48 UTC
Please test 0.6.1-r1 if you can still reproduce please reopen.
Comment 2 SpanKY gentoo-dev 2010-07-18 20:31:45 UTC
considering no one committed fixes for this, i doubt it started working.  and indeed, with 0.6.1-r1:

Runlevel: nonetwork
 metalog                                                           [  started  ]
 dcron                                                             [  started  ]
 acpid                                                             [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
 net.wlan0                                                         [  started  ]
Dynamic Runlevel: needed
 udev-mount                                                        [  started  ]
 device-mapper                                                     [  started  ]
 xdm-setup                                                         [  started  ]
Dynamic Runlevel: manual
 dmcrypt                                                           [  started  ]
 dnsmasq                                                           [  started  ]
 ntp-client                                                        [  started  ]
 openvpn                                                           [  started  ]
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-01-17 08:02:50 UTC
Cosmetic error I think, but should be fixed before going stable.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2011-02-05 02:42:43 UTC
Still an issue in 0.7.0?
Comment 5 William Hubbs gentoo-dev 2011-02-05 04:23:36 UTC
(In reply to comment #4)
> Still an issue in 0.7.0?

I'm sure it is since no one has worked on this bug yet.

Actually I'm not quite sure how to set up to test this since I haven't used stacked runlevels.
Comment 6 SpanKY gentoo-dev 2011-02-06 17:10:40 UTC
just create symlinks:
  cd /etc/runlevels
  mkdir foo
  mv default/local foo/
  ln -s ../foo default/foo
Comment 7 William Hubbs gentoo-dev 2011-02-20 01:11:29 UTC
This bug is even more weird than I first thought.

I'm in the default runlevel, with a stacked runlevel called test1 which
has very simple services, x y and z which just print a message saying
they have started:

cd /etc/runlevels
mkdir test1
rc-update add x test1
rc-update add y test1
rc-update add z test1
rc

rc-status shows the following:

Runlevel: default
 net.eth0                                                          [  started  ]
 net.tap0                                                          [  started  ]
 syslog-ng                                                         [  started  ]
 ntpd                                                              [  started  ]
 netmount                                                          [  started  ]
 sshd                                                              [  started  ]
 dbus                                                              [  started  ]
 udev-postmount                                                    [  started  ]
 vixie-cron                                                        [  started  ]
 local                                                             [  started  ]
Stacked Runlevel: test1
 z                                                                 [  started  ]
 y                                                                 [  started  ]
 x                                                                 [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 sysfs                                                             [  started  ]
 udev-mount                                                        [  started  ]
Dynamic Runlevel: manual
 z                                                                 [  started  ]
 y                                                                 [  started  ]

 The stacked runlevel is there, but all of the services except one show
 up also in the manual runlevel.

Comment 8 William Hubbs gentoo-dev 2011-02-20 01:39:21 UTC
Mor e info:

(In reply to comment #7)
> This bug is even more weird than I first thought.
> I'm in the default runlevel, with a stacked runlevel called test1 which
> has very simple services, x y and z which just print a message saying
> they have started:
> cd /etc/runlevels
> mkdir test1
> rc-update add x test1
> rc-update add y test1
> rc-update add z test1

ln -s ../test1 default/test1
Comment 9 William Hubbs gentoo-dev 2011-02-20 01:42:35 UTC
What we appear to be getting is duplication of services in the listing. I just noticed that in the initial description, the services which are listed as manually started are also listed in their appropriate run levels.
Comment 10 William Hubbs gentoo-dev 2011-02-22 00:59:57 UTC
This is a display issue that needs to be fixed, but it should not block stabilization. I am removing it from the tracker.
Comment 11 Max Hacking 2013-04-26 17:39:24 UTC
I just submitted another bug report which fixes some other issues and should resolve these too - see bug 467368 for more details.  I'd really appreciate wider testing if possible.  Thanks!
Comment 12 William Hubbs gentoo-dev 2013-04-27 16:42:36 UTC
(In reply to comment #11)
> I just submitted another bug report which fixes some other issues and should
> resolve these too - see bug 467368 for more details.  I'd really appreciate
> wider testing if possible.  Thanks!

I can confirm that the patch on bug #467368 resolves this issue.
Comment 13 William Hubbs gentoo-dev 2015-04-21 19:36:36 UTC
I am closing this since there has been no more activity.