This is the mail archive of the
mailing list for the Cygwin project.
Re: Clean up /tmp on system reboot [was: Xorg server always starting up on DISPLAY 3.0]
- From: Kizito Porta BalanyÃ <kfeina at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 10 Apr 2015 09:49:14 +0200
- Subject: Re: Clean up /tmp on system reboot [was: Xorg server always starting up on DISPLAY 3.0]
- Authentication-results: sourceware.org; auth=none
- References: <2e6601d072c3$eb17d060$c1477120$ at gmail dot 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>
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 <firstname.lastname@example.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> '
>> <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.
> 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple