Has anyone else encountered local rc scripts running twice? I thought I saw something about this on one of the @freebsd.org lists but my search efforts haven't located it yet. FreeBSD dwpc.dwlabs.ca 6.2-STABLE FreeBSD 6.2-STABLE #1: Sun May 27 00:48:45 ADT 2007 duane@dwpc.dwlabs.ca:/usr/obj/usr/src/sys/DWPC-KERNEL i386 Fresh cvsup on May 26, 2007 at roughly 0:00h GMT drwxr-xr-x 2 root wheel 9728 May 27 02:46 /boot/kernel Just finished upgrading STABLE in hopes my problem would be magically fixed Here's what I did: cd /usr/src make buildworld make buildkernel make installkernel (reboot into single-user mode) fsk -p mount -u / mount -a -t ufs swapon -a mergemaster -p make installworld mergemaster (reboot mutli-user) No errors reported during above process. I'd rather not advertise my running config to the entire Internet at large but if anyone has any ideas I'd happily make my boot logs available. Sincerely, thanks in advance Duane Whitty
On Sun, May 27, 2007 at 03:48:50AM -0300, Duane Whitty wrote:> Has anyone else encountered local rc scripts running > twice? I thought I saw something about this on one > of the @freebsd.org lists but my search efforts haven't > located it yet. >...I think I first noticed it about a week ago, but I was rather caught up in the X.org upgrade at the time, and didn't pursue it then. I'm actually seeing it in both STABLE and CURRENT -- I track each (in separate slices) on my laptop, using a common /usr/local. Running "rcorder /etc/rc.d/* /usr/local/etc/rc.d/*" doesn't show anything too bizarre. There was one of the /etc/rc.d scripts where rcorder claimed a "circular dependency," but I hacked that to avoid the circularity, and the duplicate script invocation persists. So I'm afraid I don't have much to add that's constructive. :-( Peace, david -- David H. Wolfskill david@catwhisker.org Anything and everything is a (potential) cat toy. See http://www.catwhisker.org/~david/publickey.gpg for my public key. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070527/5133b24f/attachment.pgp
On Sun, 2007-05-27 at 03:48 -0300, Duane Whitty wrote:> Has anyone else encountered local rc scripts running > twice? I thought I saw something about this on one > of the @freebsd.org lists but my search efforts haven't > located it yet.In assuming "local rc scripts" means anything installed by ports ... i am assuming you installed a fresh Xorg-7.2 and now at some point ended up with the /usr/X11R6 -> /usr/local symlink. If the above assumption holds true ... did you run the mergebase.sh script as suggested in /usr/ports/UPDATING ? Most significantly .. this script adds the following entry to your /etc/rc.conf local_startup="/usr/local/etc/rc.d" The default entry in /etc/defaults/rc.conf still references /usr/X1R6/etc/rc.d as well ... since the latter is now a symlink to the former, both rc.d-paths contain the same scripts. If your rc.conf doesn't contain the aforementioned entry, that would explain why local rc-scripts are started twice. -- Pascal Hofstee <caelian@gmail.com>
On May 27, 2007, at 2:48 AM, Duane Whitty wrote:> Has anyone else encountered local rc scripts running > twice? I thought I saw something about this on one > of the @freebsd.org lists but my search efforts haven't > located it yet. >No, but I have noticed local periodic/daily scripts running twice on 6.2. Particularly, the postgres nightly vacuum.
On May 27, 2007, at 8:11 AM, Pascal Hofstee wrote:> If the above assumption holds true ... did you run the mergebase.sh > script as suggested in /usr/ports/UPDATING ? > > Most significantly .. this script adds the following entry to > your /etc/rc.conf > > local_startup="/usr/local/etc/rc.d" >Hrm... seems this needs to be done for local_periodic in periodic.conf also!