Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jun 2015 06:36:55 -0400
From:      Ernie Luzar <luzar722@gmail.com>
To:        Matthew Seaman <matthew@FreeBSD.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: daily cron emails
Message-ID:  <55854247.9040900@gmail.com>
In-Reply-To: <55847EF8.60907@FreeBSD.org>
References:  <5584763F.6060701@gmail.com> <55847EF8.60907@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
   Matthew Seaman wrote:

On 19/06/2015 21:06, Ernie Luzar wrote:


I added this line to /etc/crontab on a Tuesday

15 1  * * * root sa-update && service sa-spamd restart

and got the normal daily 2 security emails. But with the weekly security
emails I also got a separate email about the new command I added. From
that point on, I am also getting that email on a daily bases.

Is this normal behavior?


Yeah.  You're not meant to futz with /etc/crontab.  Instead, as root run:

   crontab -u root -e

and then enter the line:

   15 1  * * * sa-update && service sa-spamd restart

(note: no 'root' as the 6th field).

Or you could just install the mail/sa-utils port which gets you a
periodic job to run sa-update along with all the other periodic stuff.

        Cheers,

        Matthew




   Did "crontab -u root -e" and don't see the stuff I added being added to
   /etc/crontab file.
   Where is the crontab file additions stored / saved?



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