I need that my ntp-client start only after net.eth0. I can add "need net.eth0" in /etc/init.d/ntp-client, but it not good idea to change this scripts, best way - edit /etc/rc.conf. But, construction like "rc_ntp-client_need="net.eth0" does not work properly. Reproducible: Always Steps to Reproduce: 1. echo "rc_ntp-client_need=\"net.eth0\"" >> /etc/rc.conf 2. rc-service start ntp-client Actual Results: gentoo etc # rc-service ntp-client restart * Caching service dependencies ... /etc/rc.conf: line 144: rc_ntp-client_need=net.eth0: command not found /etc/rc.conf: line 144: rc_ntp-client_need=net.eth0: command not found /etc/rc.conf: line 144: rc_ntp-client_need=net.eth0: command not found /etc/rc.conf: line 144: rc_ntp-client_need=net.eth0: command not found
Dunno if this is really a bug as you can achieve the same result when you add the following line to the file /etc/conf.d/ntp-client: rc_need="net.eth0"
(In reply to comment #1) > Dunno if this is really a bug as you can achieve the same result when you add > the following line to the file /etc/conf.d/ntp-client: > rc_need="net.eth0" That is correct, the method above is the preferred way to do this. However, it is also possible to add a line to rc.conf to make this work. To do this, you must use an underscores instead of dashes., so the line you would add to rc.conf looks like: rc_ntp_client_need="net.eth0"