delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/10/03:49:38

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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=Z0
2BpfmGsXUdWpZ3xA4pHGBvhTSGeycHpviKjGD8EANm9sJCrLffQj4QcPekZCZLw6
w5MFEoeVRIO9alJLBD4O4WDpRcwkSko5jRAtEiNkcxGf+pYq814XQO73ObGTei92
Lv93J0pb5kVg2O2VsK6cDbU5kf5rKKuITiZGQBuAM=
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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=3TzwCKWh
0PFlTE2BI7XIsuH79FE=; b=j2XefEApUke8XFW8LTYWvUEl4mGYaRrjsNL6ETJn
5v7yIe6NpbX6vQKb9mG0qSvkwW+JvkEOy4xeRZwsdjDeP8RG9PmD85qocayVK9TV
7AUQQkOZciTagScc3/KWSNRISXjshiYEau0QeoMy7jEe5GNCVGXDC9CdF91QMzm9
SDs=
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=-1.0 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-la0-f46.google.com
MIME-Version: 1.0
X-Received: by 10.112.138.195 with SMTP id qs3mr244456lbb.47.1428652154463; Fri, 10 Apr 2015 00:49:14 -0700 (PDT)
In-Reply-To: <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> <loom DOT 20150410T012243-602 AT post DOT gmane DOT org>
Date: Fri, 10 Apr 2015 09:49:14 +0200
Message-ID: <CAO2ddnaUO+LiEG54GhiM1uLEYPE4p=LeFer0XjwyfRg330Q+vw@mail.gmail.com>
Subject: Re: Clean up /tmp on system reboot [was: Xorg server always starting up on DISPLAY 3.0]
From: =?UTF-8?Q?Kizito_Porta_Balany=C3=A0?= <kfeina AT gmail DOT com>
To: cygwin AT cygwin DOT com

Hello,

I'm wondering how cron knows when a machine is rebooted.
What does cron check? Which parameter / file?
Do you know it?

Thanks a lot .



2015-04-10 1:27 GMT+02:00 Mark Geisert <mark AT maxrnd DOT com>:
> 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
>

--
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