public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Mark Geisert <mark@maxrnd.com>
To: cygwin@cygwin.com
Subject: Re: Clean up /tmp on system reboot [was: Xorg server always starting up on DISPLAY 3.0]
Date: Thu, 09 Apr 2015 23:27:00 -0000	[thread overview]
Message-ID: <loom.20150410T012243-602@post.gmane.org> (raw)
In-Reply-To: <mg715f$g8i$1@ger.gmane.org>

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

  reply	other threads:[~2015-04-09 23:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09 12:51 cyg Simple
2015-04-09 20:29 ` Andrew DeFaria
2015-04-09 22:22   ` Mark Hansen
2015-04-09 23:15     ` Andrew DeFaria
2015-04-09 23:27       ` Mark Geisert [this message]
2015-04-10  7:49         ` Kizito Porta Balanyà
2015-04-10  8:20           ` Frank Fesevur
2015-04-10 20:39             ` Andrew DeFaria
2015-04-10 21:56               ` Frank Fesevur
2015-04-11  0:35                 ` LRN
2015-04-13 10:58                   ` Kizito Porta Balanyà

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20150410T012243-602@post.gmane.org \
    --to=mark@maxrnd.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).