From owner-freebsd-current@FreeBSD.ORG Tue Dec 27 23:23:58 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 310D316A420 for ; Tue, 27 Dec 2005 23:23:58 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id 7760843D64 for ; Tue, 27 Dec 2005 23:23:50 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 49749 invoked by uid 399); 27 Dec 2005 23:23:45 -0000 Received: from localhost (HELO ?192.168.0.6?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 27 Dec 2005 23:23:45 -0000 Message-ID: <43B1CCF7.20204@FreeBSD.org> Date: Tue, 27 Dec 2005 15:23:35 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Giorgos Keramidas References: <200512261517.23498.nb_root@videotron.ca> <200512261538.53467.nb_root@videotron.ca> <20051227020910.GA19581@flame.pc> <43B0F4EB.7040702@FreeBSD.org> <20051227150422.GA1216@flame.pc> In-Reply-To: <20051227150422.GA1216@flame.pc> X-Enigmail-Version: 0.93.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org, Nicolas Blais Subject: Re: Can't run KDE after cvsup X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 23:23:58 -0000 Giorgos Keramidas wrote: > The cleartmp_prestart() function runs only when the script runs with > $1 set to 'start', but the boot process calls the script with > 'faststart'. Duh, sorry I missed this, total brain vacation on my part. I fixed this for one of the ports scripts, and forgot to do it here. > Even when I change cleartmp to recognise faststart, onestart, start > and forcestart, the cleartmp_prestart() function runs before > cleartmp_start(), creates the directories, only to have them deleted > immediately by cleartmp_start() when run_rc_command is called. > > I'm not sure if there's a good way to modify cleartmp to do both things > correctly, at least without something equally hackish like: > > run_rc_command "$@" || exit $? > > case $1 in *start) It's still a little hackish, but it works. I just added the X directories to the exclude list for find so they won't be deleted now. Thanks for the reminder. Doug -- This .signature sanitized for your protection