Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2007 17:25:56 -0400
From:      Parv <parv@pair.com>
To:        Stefan Hauser <etienne@usr.ch>
Cc:        stable@freebsd.org
Subject:   Re: local/rc.d/* executed twice
Message-ID:  <20070602212556.GB2169@holestein.holy.cow>
In-Reply-To: <200706021940.l52JetK8064362@multi.usr.ch>
References:  <200706021940.l52JetK8064362@multi.usr.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <200706021940.l52JetK8064362@multi.usr.ch>,
wrote Stefan Hauser thusly...
>
> after upgrading 3 machines, i noticed that /usr/local/etc/rc.d/*
> scipts get exectued twice.  does anyone have a fix for it ? 

This had been discussed/mentioned on ports@ mailing list, and
possibly on questions@ too; search for Doug Barton's messages during
the last month.

In short term, set local_startup & possibly local_periodic to the
actual directories ...

  http://groups.google.com/group/mailing.freebsd.ports/msg/2604cd508c3ca533


You see $local_startup currently, at least on 6-STABLE, is set to
/usr/{X11R6,local}.  And after the X11 Windows System update to xorg
7.x, /usr/X11R6 would be a symbolic link to /usr/local (if you had
followed the official|supported directions), which leads to double
runs of /usr/local/etc/rc.d. See ...

  http://groups.google.com/group/mailing.freebsd.ports/msg/dd286acc00ef71d4


The proper, and long term, solution is to fix /etc/rc.subr, for
local start ups, so that symbolic links do not cause multiple runs of
the same script.  A initial patch had been submitted to rc@ list by
yours truly based on initial work by Doug ...

  http://groups.google.com/group/mailing.freebsd.ports/msg/653b2a0f3cfdb76f
  http://groups.google.com/group/mailing.freebsd.ports/msg/1d0f640cc8bb6433
  http://groups.google.com/group/lucky.freebsd.rc/browse_thread/thread/cd21685e1b8c35cd/


... for some reason the patch had been stripped in message to @rc,
which I had initially sent to ports@.  Note that above patch does
not deal with periodic scripts running twice (noticed wrt PostgreSQL
port).


  - Parv

-- 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070602212556.GB2169>