joris at giovannangeli.fr
Fri Jan 31 13:40:32 PST 2014
I hitted an issue running rcstart smtpd, to start opensmtpd installed
smtpd depends on mail, current state: stopped
Here are the provide smtpd metada :
# PROVIDE: smtpd mail
# REQUIRE: LOGIN
# KEYWORD: shutdown
Actually, it fails in dostart function from sbin/rcrun/rcrun.sh
The functions does that :
for j in $rclist; do
for k in `rcorder -p $j`; do
if [ $k = $i ]; then
state=`varsym -s -q rcng_$k`
case X$state in
echo "$i depends on $k, current state: $state"
rclist is the topological sorting of the dependency graph of the service
to start (in $i).
Hence, for each dependency, the script iterates the provide list
(rcorder -p) and check the status of the services in this list which are
not the service to start.
I see why you want to test if the dependency is running, but why testing
each provided service ?
More information about the Users