Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424589 - sys-apps/openrc - services containing two dots are ignored by rc-status
Summary: sys-apps/openrc - services containing two dots are ignored by rc-status
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:
Depends on:
Blocks:
 
Reported: 2012-07-03 08:37 UTC by mike
Modified: 2012-07-03 22:26 UTC (History)
0 users

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 mike 2012-07-03 08:37:24 UTC
openrc ignored in the runlevels the service containing the two dots in the SVCNAME
also rc-status does not see them
example:

host01 ~ # ls -l /etc/runlevels/default/lxc.*
lrwxrwxrwx 1 root root 25 июля   2 01:53 /etc/runlevels/default/lxc.srv01.dmz0 -> /etc/init.d/lxc.srv01.dmz0
lrwxrwxrwx 1 root root 28 июня  29 13:24 /etc/runlevels/default/lxc.srv02.dmz0 -> /etc/init.d/lxc.srv02.dmz0
lrwxrwxrwx 1 root root 29 июня  29 13:24 /etc/runlevels/default/lxc.srv03.dmz0 -> /etc/init.d/lxc.srv03.dmz0
lrwxrwxrwx 1 root root 19 сент.  6  2011 /etc/runlevels/default/lxc.srv -> /etc/init.d/lxc.srv
lrwxrwxrwx 1 root root 27 июня  21 04:51 /etc/runlevels/default/lxc.syslog.dmz0 -> /etc/init.d/lxc.syslog.dmz0
host01 ~ # rc-status default |grep lxc
 lxc.srv                                                           [  started  ]

But it's not just lxc, but all of the services with two dots in the SVCNAME

Manually all services are started correct



Reproducible: Always

Steps to Reproduce:
host01 ~ # cp -a /etc/init.d/consolefont /etc/init.d/x.y.z
host01 ~ # rc-update add x.y.z default
 * service x.y.z added to runlevel default
host01 ~ # ls -l /etc/init.d/x.y.z /etc/runlevels/default/x.y.z
-rwxr-xr-x 1 root root 1517 февр.  1 09:29 /etc/init.d/x.y.z
lrwxrwxrwx 1 root root   17 июля   3 11:33 /etc/runlevels/default/x.y.z -> /etc/init.d/x.y.z
host01 ~ # rc-status default | grep x.y.z
host01 ~ # rc-status default | grep x.y.z| wc -l
0




tested on 
sys-apps/openrc-0.9.8.4
sys-apps/openrc-0.9.9.3
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-07-03 17:55:00 UTC
The *other* property all those service names have in commmon is that they are symlinks to a full path target.

Try setting symlinks relative to the target's directory, and see if that works.
Comment 2 mike 2012-07-03 20:04:12 UTC
Bug is present not only with symlinks.
Special, to verify this was made "exeperiment" to /etc/init.d/x.y.z
You can reproduce it.
Comment 3 William Hubbs gentoo-dev 2012-07-03 21:22:25 UTC
(In reply to comment #2)
> Bug is present not only with symlinks.
> Special, to verify this was made "exeperiment" to /etc/init.d/x.y.z
> You can reproduce it.

I'm using current openrc head (basically openrc-0.10.4), and I did the following. First, I have a service I call x that just prints a message when it starts and stops.

# cd /etc/init.d
# ln -s x x.y
# ln -s x x.y.z
# rc-update add x default
# rc-update add x.y default
# rc-update add x.y.z default

All services could be seen by rc-status and they stopped and started successfully. So if I understand your description correctly, this is already fixed.

Can you try with openrc-0.10.4?

Thanks,

William
Comment 4 mike 2012-07-03 22:26:44 UTC
Thank you, William.
After updating to the latest version (0.10.4) everything works correctly. Services start fine from runlevels/default.