devd vs cleanvar ordering
Ulrich Spoerlein
uspoerlein at gmail.com
Wed Oct 25 18:45:29 UTC 2006
Hello,
I'm running 6.2-PRE and have bsnmpd and devd enabled. bsnmpd starting
issueing errors upon boot, the devd.pipe in /var/run was not existant.
Indeed, my system somehow ran cleanvar *after* devd.
This was the output after setting rc_debug=YES and putting a 'ls
/var/run/devd.pipe' at the top of /etc/rc.subr
/etc/rc: DEBUG: The following interfaces were not configured: fwip0 ipw0
ls:
/var/run/devd.pipe: No such file or directory
/etc/rc.d/ipfilter: DEBUG: checkyesno: ipfilter_enable is set to NO.
ls:
/var/run/devd.pipe: No such file or directory
/etc/rc: DEBUG: checkyesno: devd_enable is set to YES.
Starting devd.
/etc/rc: DEBUG: run_rc_command: _doit: /sbin/devd
/etc/rc: DEBUG: checkyesno: devd_enable is set to YES.
/var/run/devd.pipe
/etc/rc: DEBUG: checkyesno: ipsec_enable is set to NO.
/var/run/devd.pipe
/etc/rc: DEBUG: checkyesno: cleanvar_enable is set to YES.
/etc/rc: DEBUG: run_rc_command: evaluating cleanvar_prestart().
/etc/rc: DEBUG: run_rc_command: evaluating cleanvar_start().
ls:
/var/run/devd.pipe: No such file or directory
/etc/rc: DEBUG: checkyesno: isdn_enable is set to NO.
ls:
/var/run/devd.pipe: No such file or directory
I solved this by putting 'REQUIRE: cleanvar' into the devd script.
Strange thing is, that other 6.2 systems I administer do NOT have that
problem.
Perhaps there is an ordering race in rcorder?
Ulrich Spoerlein
Please keep me CC'ed. Thanks.
--
A: Yes.
>Q: Are you sure?
> >A: Because it reverses the logical flow of conversation.
> >>Q: Why is top posting frowned upon?
More information about the freebsd-rc
mailing list