From owner-freebsd-current@FreeBSD.ORG Tue Dec 27 15:05:40 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 9054C16A41F; Tue, 27 Dec 2005 15:05:40 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB7EF43D5A; Tue, 27 Dec 2005 15:05:38 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (patr530-a115.otenet.gr [212.205.215.115]) by aiolos.otenet.gr (8.13.4/8.13.4/Debian-8) with ESMTP id jBRF5YSx026080; Tue, 27 Dec 2005 17:05:34 +0200 Received: by flame.pc (Postfix, from userid 1001) id A5D88115E3; Tue, 27 Dec 2005 17:04:22 +0200 (EET) Date: Tue, 27 Dec 2005 17:04:22 +0200 From: Giorgos Keramidas To: Doug Barton Message-ID: <20051227150422.GA1216@flame.pc> References: <200512261517.23498.nb_root@videotron.ca> <200512261538.53467.nb_root@videotron.ca> <20051227020910.GA19581@flame.pc> <43B0F4EB.7040702@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43B0F4EB.7040702@FreeBSD.org> 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 15:05:40 -0000 On 2005-12-27 00:01, Doug Barton wrote: > Giorgos Keramidas wrote: > > On 2005-12-26 15:38, Nicolas Blais wrote: > >> Reply to self: > >> > >> Found the problem, it was /tmp/.ICE-unix/ which was owned by my > >> username instead of root for some reason. chown'ing it back to root > >> solved my problem. > > > > There are a few buglets in recent versions of /etc/rc.d/cleantmp. > Well, a good start would be to let me know what the buglets are. :) Hi Doug :) I thought I had mailed you already about this, but apparently the message was lost somewhere. With the recent email problems I've had, it may not be so strange. Anyway, here's a copy of the message: On 2005-12-20 23:22, Doug Barton wrote: > dougb 2005-12-20 23:22:47 UTC > > FreeBSD src repository > > Modified files: > etc/rc.d cleartmp > Log: > Include a somewhat hackish way to make sure that we *always* test the > new clear_tmp_X variable when start'ing. > > Revision Changes Path > 1.15 +6 -1 src/etc/rc.d/cleartmp This doesn't seem to work too well though. Revision 1.12 of cleartmp correctly creates .ICE-unix and the other X11 socket dirs in /tmp in my mfs /tmp filesystem. Newer revisions fail to do this, for two reasons: The cleartmp_prestart() function runs only when the script runs with $1 set to 'start', but the boot process calls the script with 'faststart'. 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|faststart|forcestart|onestart) clear_tmp_prestart ;; esac or if it's better to make two cleartmp scripts :-/