On 7/25/19 3:34 PM, Baho Utot via blfs-support wrote:

On 7/25/19 3:27 PM, Jean-Marc Pigeon via blfs-support wrote:
On 07/25/2019 03:17 PM, Bruce Dubbs via blfs-support wrote:
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.
I agree with you Bruce, we should keep flexibility and keep control over something as rotating logs.
The proposal to link logrotate to cron.daily seems not a good one to me
(as sysadmin).

Well how does one lose control over log rotation by using cron.daily?

All jobs in cron.daily are run at the same time. This may, or may not be an issue for you.

They way I suggested it, you simply drop the file into cron.daily

and your down to fiddling around with fcrontab

If you are using a package manager then nothing is required after installing the package.

In my case I am using rpm.

Your distro, your rules.

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
Well I am using thunderbird

Edit -> Preferences -> Composition -> Send Options
Check "Send messages as plain text if possible'

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