From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31765 invoked by alias); 10 Apr 2015 07:49:20 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 31743 invoked by uid 89); 10 Apr 2015 07:49:18 -0000 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 Received: from mail-la0-f46.google.com (HELO mail-la0-f46.google.com) (209.85.215.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 10 Apr 2015 07:49:17 +0000 Received: by labbd9 with SMTP id bd9so7425291lab.2 for ; Fri, 10 Apr 2015 00:49:14 -0700 (PDT) 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) Received: by 10.25.200.213 with HTTP; Fri, 10 Apr 2015 00:49:14 -0700 (PDT) In-Reply-To: References: <2e6601d072c3$eb17d060$c1477120$@gmail.com> <5526FBA6.4070806@winfirst.com> Date: Fri, 10 Apr 2015 07:49:00 -0000 Message-ID: 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?= To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-04/txt/msg00166.txt.bz2 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 : > 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 ' ' >> character: >> 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