X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=SCT+lPIsSOCxFv9gfiMPUIH+0a8AF3q0xXgVrh5ugwS5eICmCRnAz
	cYyutHV7tzQpXi8nfVvZ6tg/skDdA3GOeMPQdc9s5+A6Et2+INBJplW42LGHNEPD
	h3oJr9756+Ch1yT3Tdh8k/Xy+02s49xpeXAHFEV5okLEpbheYTZWRY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=U6KIUz8yuvpsV9HiOBFSJrHNazg=; b=dRNzLNWNDqashnvpbdL3VB0MdOY0
	bOEwR/q4jr628rlVXZzIudXaGlvGoPOFHT8Qk1MfH0XQv60Bh7eWhhmTaZlrIUMy
	nM3Bl0Wr8qSknVq/FFMuYobW6LaexMA3DUKcUs3u+YOPeELSDJJimZP5A2UZhysf
	uREhKIpdbVe3ffw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin@cygwin.com
From: Mark Geisert <mark@maxrnd.com>
Subject: Re: Clean up /tmp on system reboot [was: Xorg server always starting up on DISPLAY 3.0]
Date: Thu, 9 Apr 2015 23:27:31 +0000 (UTC)
Lines: 28
Message-ID: <loom.20150410T012243-602@post.gmane.org>
References: <2e6601d072c3$eb17d060$c1477120$@gmail.com> <mg6ne3$m61$1@ger.gmane.org> <5526FBA6.4070806@winfirst.com> <mg715f$g8i$1@ger.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Andrew DeFaria writes:
> On 4/9/2015 3:22 PM, Mark Hansen wrote:
> >> Or use cron...
> >
> > How can cron help? You don't want to delete these files while some
> > process may be
> > using them (note: I didn't say while the process has the file open - it
> > may not be
> > open to be valuable). You really need this clean-up done when the
> > machine boots up
> > because you know at that point, all the processes that were using those
> > files are
> > gone.
> 
> Somebody hasn't read man 5 crontab, which states:
> 
> These special  time  specification  "nicknames"  are  supported,  which
>         replace the 5 initial time and date fields, and are prefixed by 
> the ' <at> '
>         character:
>          <at> reboot    :    Run once, at startup.

If you're going to involve cron you probably want to make sure service
dependencies on other Cygwin services are set so they depend on cron.  Just
so their possible use of files in /tmp comes after /tmp has been cleaned.

..mark



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

