hi after upgrading 3 machines, i noticed that /usr/local/etc/rc.d/* scipts get exectued twice. does anyone have a fix for it ? tnx etienne
On 6/2/07, Stefan Hauser <etienne@usr.ch> wrote:> after upgrading 3 machines, i noticed that /usr/local/etc/rc.d/* scipts get > exectued twice. > does anyone have a fix for it ? >Add the following to /etc/rc.conf: local_startup="/usr/local/etc/rc.d" And add the following to /etc/periodic.conf: local_periodic="/usr/local/etc/periodic" Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.
Hello, Am Samstag, 2. Juni 2007 schrieb Stefan Hauser:> after upgrading 3 machines, i noticed that /usr/local/etc/rc.d/* > scipts get exectued twice. > does anyone have a fix for it ?Add local_startup="/usr/local/etc/rc.d" to your /etc/rc.conf. After the upgrade to x.org-7.2 /usr/X11R6 is a symlink to /usr/local. The default-value of local_startup is set in /etc/defaults/rc.conf to local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" Therefore all scripts will be executed twice if you don't change the defaults. Maybe an addition to the hint in /usr/ports/UPDATING would be good. HTH thomas -- If you are not for yourself, who will be for you? If you are for yourself, then what are you? If not now, when?
Hi!> after upgrading 3 machines, i noticed that /usr/local/etc/rc.d/* scipts get > exectued twice. > does anyone have a fix for it ?The reason is: /etc/defaults/rc.conf contains local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs. To fix it, add a line to /etc/rc.conf: local_startup="/usr/local/etc/rc.d" This overrides the default value and will solve the problem. -- pi@c0mplx.org +49 171 3101372 13 years to go !
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 --