Date: Fri, 25 Nov 2011 10:53:39 -0700 (MST) From: Warren Block <wblock@wonkity.com> To: Tom Evans <tevans.uk@googlemail.com> Cc: hackers@freebsd.org Subject: Re: cron(8) mis-feature with @reboot long after system startup Message-ID: <alpine.BSF.2.00.1111251042110.80691@wonkity.com> In-Reply-To: <CAFHbX1JepyBHW8=YrpCU%2BPHtCJ_EruPdYgkT83x3eY317Cucnw@mail.gmail.com> References: <dougb@FreeBSD.org> <4ECF54F1.50203@FreeBSD.org> <201111251609.pAPG97dT008848@slippy.cwsent.com> <CAFHbX1JepyBHW8=YrpCU%2BPHtCJ_EruPdYgkT83x3eY317Cucnw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---902635197-1839580335-1322243619=:80691 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Fri, 25 Nov 2011, Tom Evans wrote: > On Fri, Nov 25, 2011 at 4:09 PM, Cy Schubert <Cy.Schubert@komquats.com> wrote: >> Changing the behaviour by default would change the semantics of @reboot, >> altering the behaviour of cron jobs which rely on the brokenness. What if >> both behaviours are wanted on the same system? Unlikely, as I can't see >> anyone relying on this broken behaviour. Having said that, I'm sure there >> are cron jobs that do rely on the broken behaviour, so it may be best to >> simply deprecate the broken behaviour and make one or the other a command >> line option. > > > The problem is that the behaviour is not broken, it works exactly as > described in crontab(5) - it is just confusing. But crontab(5) just says "startup", when really it means "cron startup", so: http://svnweb.freebsd.org/base?view=revision&revision=227981 > It's also slightly nonsensical - the command isn't run at reboot, it > is run at boot. It isn't just at boot, even. Really it should be called @cronstart. But that ship probably sailed a long time ago. A better alias could be added and @reboot marked as deprecated. (This does not address the technical problem of really only running something at system startup. IMHO, rc scripts are a better fit for that.) ---902635197-1839580335-1322243619=:80691--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1111251042110.80691>