On 07/25/2019 03:17 PM, Bruce Dubbs via blfs-support wrote:
I agree with you Bruce, we should keep flexibility and keep control over something as rotating logs.On 7/25/19 1:04 PM, Baho Utot via blfs-support wrote:Should this be changed0 3 * * * /usr/sbin/logrotate /etc/logrotate.conf to > install -vdm 755 /etc/cron.daily cat > /etc/cron.daily /logrotate.sh << EOF > #!/bin/bash /usr/sbin/logrotate -v /etc/logrotate.conf EOF chmod 754 etc/cron.daily/logrotate.shYou can certainly do that, but if you want more control over when the script runs, it needs to be separate. With the configuration we have, everything in cron.daily will run at 04:02 in the local time zone.
The proposal to link logrotate to cron.daily seems not a good one to me (as sysadmin).
As an aside, I had to reformat your message in my reply as it wasn't very readable. It was sent html only. See if you can also have it send in text mode. -- Bruce
-- seen "Linux from scratch" and looking for ISO files www.osukiss.org
smime.p7s
Description: S/MIME Cryptographic Signature
-- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
