delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/09/19:28:06

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT cygwin DOT com
From: Mark Geisert <mark AT maxrnd DOT 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 AT ger DOT gmane DOT org> <5526FBA6 DOT 4070806 AT winfirst DOT com> <mg715f$g8i$1 AT ger DOT gmane DOT org>
Mime-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019