local/rc.d/* executed twice

Parv parv at pair.com
Sat Jun 2 21:55:31 UTC 2007


in message <200706021940.l52JetK8064362 at 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 at .  Note that above patch does
not deal with periodic scripts running twice (noticed wrt PostgreSQL
port).


  - Parv

-- 



More information about the freebsd-stable mailing list