From owner-cvs-all@FreeBSD.ORG Mon Dec 1 08:49:28 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FABC16A4D1 for ; Mon, 1 Dec 2003 08:49:28 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id F17884400F for ; Mon, 1 Dec 2003 08:48:25 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 13289 invoked by uid 1000); 1 Dec 2003 16:48:26 -0000 Date: Mon, 1 Dec 2003 08:48:26 -0800 (PST) From: Nate Lawson To: Mike Makonnen In-Reply-To: <20031201163631.B160A16A557@hub.freebsd.org> Message-ID: <20031201084533.H13221@root.org> References: <20031201163631.B160A16A557@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc/rc.d cleartmp X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2003 16:49:28 -0000 On Mon, 1 Dec 2003, Mike Makonnen wrote: > Modified files: > etc/rc.d cleartmp > Log: > When clearing /tmp, X11 lock and temporary files are special. > Remove them unconditionaly. > > PR: bin/59065 > Approved by: re (scottl) > > Revision Changes Path > 1.5 +13 -13 src/etc/rc.d/cleartmp > > load_rc_config $name > run_rc_command "$1" > + > +case ${OSTYPE} in > +FreeBSD) > + # Remove X lock files, since they will prevent you from > + # restarting X > + # > + rm -f /tmp/.X*-lock > + rm -fr /tmp/.X11-unix > + mkdir -m 1777 /tmp/.X11-unix > + ;; > +NetBSD) > + ;; > +esac How about .X[0-9]-lock instead of *? -Nate