Where Are All These Files Located?
Matthew Seaman
m.seaman at infracaninophile.co.uk
Mon Sep 4 14:05:23 PDT 2006
Ted Johnson wrote:
> Robert Huff <roberthuff at rcn.com> wrote:
> Ted Johnson writes:
>
>> "BSD and FreeBSD: You should go to the /etc directory and edit
>> the /etc/daily, /etc/weekly, and /etc/monthly scripts and change the
>> 'rotate()' script function to change the log permissions on
>> rotation."
>
> "find -x / -name daily" should give you the answer.
>
> Yeah, I tried that. It didn't work. Files must be referencing something else, by different name. Any other ideas?
They don't exist by default any more, but if you *create*
/etc/{daily,weekly,monthly}.local, then they will get run as part of the
appropriate periodic tasks. See:
/etc/periodic/daily/999.local
/etc/periodic/weekly/999.local
/etc/periodic/monthly/999.local
grep _local /etc/defaults/periodic.conf
However, why wouldn't you just setup /etc/newsyslog.conf to rotate your
logfiles? Much simpler and cleaner.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060904/bacc430d/signature.pgp
More information about the freebsd-questions
mailing list