On 7/25/19 1:04 PM, Baho Utot via blfs-support wrote:
Should this be changed

0 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.sh

You 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.

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
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to