Who generates the daily, weekly, monthly reports on FreeBSD?

Daniel Bye freebsd-questions at slightlystrange.org
Sat Jan 22 13:16:09 PST 2005

On Sat, Jan 22, 2005 at 10:01:47PM +0100, Anthony Atkielski wrote:
> albi writes:
> a> check the /etc/periodic/ dir
> I've seen it.  But where does it run from?  Supposedly you're not
> supposed to modify crontab files directly, but where do these jobs
> belong if crontab -l from root won't list them.  Is there some sort of
> "system" crontab in addition to those for root and other users, or how
> does it work?

/etc/crontab is indeed the "system" crontab.  You can safely edit this
one by hand.

The following three lines are the ones you're interested in:

# Perform daily/weekly/monthly maintenance.
1       3       *       *       *       root    periodic daily
15      4       *       *       6       root    periodic weekly
30      5       1       *       *       root    periodic monthly

Note the additional field, before the command is named.  It determines
which user the command runs as.

See crontab(5) for more details.


Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050122/16388408/attachment.bin

More information about the freebsd-questions mailing list