Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Sep 2010 10:27:23 -0700
From:      patrick <gibblertron@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: 8.1: Cron ignoring crontab updates
Message-ID:  <AANLkTimvdf6=UU8hf9vLweKiM1FBJn4nPFj031EojO5o@mail.gmail.com>
In-Reply-To: <4C80C1D6.2050104@qeng-ho.org>
References:  <AANLkTing=YCBQWYanuKa1NHBcBoCX6Fhyg=zGA%2BebtvA@mail.gmail.com> <AANLkTin0_9g_ngjPbPc69uUmUMU82HerbB5BORCckWkt@mail.gmail.com> <4c80af91.0XK7R1NzplpVQC/a%perryh@pluto.rain.com> <4C80C1D6.2050104@qeng-ho.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Yes, it's definitely updating:

[root@juno /var/cron/tabs]# ls -ald /var/cron/tabs
drwx------  2 root  wheel  512 Sep  2 12:49 /var/cron/tabs

And after editing my crontab:

[root@juno /var/cron/tabs]# ls -ald /var/cron/tabs
drwx------  2 root  wheel  512 Sep  3 10:25 /var/cron/tabs

I've been using FreeBSD since version 4, and this has never once been
an issue, nor is this an issue on a system with a fresh install of
8.1.

Patrick


On Fri, Sep 3, 2010 at 2:37 AM, Arthur Chance <freebsd@qeng-ho.org> wrote:
> On 09/03/10 09:19, perryh@pluto.rain.com wrote:
>>
>> Chris Rees<utisoft@gmail.com> =A0wrote:
>>
>>> You have to SIGHUP cron, not restart it.
>>>
>>> # killall -HUP cron
>>
>> Isn't crontab(1) supposed to do that, without separate intervention?
>
> From man cron
>
>> =A0 =A0 Additionally, cron checks each minute to see if its spool direct=
ory's
>> =A0 =A0 modification time (or the modification time on /etc/crontab) has
>> changed,
>> =A0 =A0 and if it has, cron will then examine the modification time on a=
ll
>> =A0 =A0 crontabs and reload those which have changed. =A0Thus cron need =
not be
>> =A0 =A0 restarted whenever a crontab file is modified. =A0Note that the
>> crontab(1)
>> =A0 =A0 command updates the modification time of the spool directory whe=
never
>> it
>> =A0 =A0 changes a crontab.
>
> From the original post crontab seems to be working, so all I can suggest
> is to "ls -ld /var/cron/tabs" before and after using crontab -e and see
> if the modtime is being changed correctly.
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimvdf6=UU8hf9vLweKiM1FBJn4nPFj031EojO5o>