Re: local/rc.d/* executed twice



in message <200706021940.l52JetK8064362@xxxxxxxxxxxx>,
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

--

_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • [PATCH 2/7] ide: fix ide_host_register() return value
    ... Fix ide_host_registerto fail only if all ports cannot be registered. ... There should be no functional changes caused by this patch. ...
    (Linux-Kernel)
  • rpc fix
    ... This is the fix that ms gave our company... ... after you blocked the ports with this patch you now have ... to find the virus! ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Windows mobile 5/activesync4/bluetooth over ethernet
    ... they should damn well fix the hole and ensure that standard ... ports on an enterprise client PC! ... We may only sync via WiFi at ... Could they fix it? ...
    (microsoft.public.pocketpc.activesync)
  • Re: IE8 or SP3 has disabled printing
    ... HP released it's fix. ... Microsoft has a reputation for maligning LPT ports when upgrading to ... I think since parallel ports are not so popular, ...
    (microsoft.public.windowsxp.general)
  • Re: Fixing -pthreads (Re: ports and -current)
    ... people fix them. ... I don't have the time to fix broken ports ... transition to libpthread is making ports PTHREAD_LIBS compliant. ... has been over 2 years since, yada yada yada, and the ports ...
    (freebsd-current)