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
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.
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.
(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
Thank you, William. After updating to the latest version (0.10.4) everything works correctly. Services start fine from runlevels/default.