From owner-cvs-src@FreeBSD.ORG Fri Dec 23 03:16:54 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FC9616A41F; Fri, 23 Dec 2005 03:16:54 +0000 (GMT) (envelope-from keramida@FreeBSD.org) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19D9343D5C; Fri, 23 Dec 2005 03:16:52 +0000 (GMT) (envelope-from keramida@FreeBSD.org) Received: from flame.pc (patr530-a115.otenet.gr [212.205.215.115]) by kane.otenet.gr (8.13.4/8.13.4/Debian-8) with ESMTP id jBN3GolL012945; Fri, 23 Dec 2005 05:16:50 +0200 Received: by flame.pc (Postfix, from userid 1001) id 6C19E115D7; Fri, 23 Dec 2005 05:15:42 +0200 (EET) Date: Fri, 23 Dec 2005 05:15:42 +0200 From: Giorgos Keramidas To: Doug Barton Message-ID: <20051223031542.GA1580@flame.pc> References: <200512202322.jBKNMljh042547@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512202322.jBKNMljh042547@repoman.freebsd.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc/rc.d cleartmp X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 03:16:54 -0000 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 :-/