From owner-freebsd-stable@FreeBSD.ORG Sat Jun 2 21:55:31 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D237E16A41F for ; Sat, 2 Jun 2007 21:55:31 +0000 (UTC) (envelope-from parv@pair.com) Received: from mta7.adelphia.net (mta7.adelphia.net [68.168.78.193]) by mx1.freebsd.org (Postfix) with ESMTP id 98AAF13C457 for ; Sat, 2 Jun 2007 21:55:31 +0000 (UTC) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([24.126.17.68]) by mta11.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20070602212515.NFDH13315.mta11.adelphia.net@default.chvlva.adelphia.net>; Sat, 2 Jun 2007 17:25:15 -0400 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id B9067B6B4; Sat, 2 Jun 2007 17:25:56 -0400 (EDT) Date: Sat, 2 Jun 2007 17:25:56 -0400 From: Parv To: Stefan Hauser Message-ID: <20070602212556.GB2169@holestein.holy.cow> Mail-Followup-To: Stefan Hauser , stable@freebsd.org References: <200706021940.l52JetK8064362@multi.usr.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200706021940.l52JetK8064362@multi.usr.ch> Cc: stable@freebsd.org Subject: Re: local/rc.d/* executed twice X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2007 21:55:31 -0000 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 --