On Thu, Jul 25, 2019 at 04:34:45PM -0400, Baho Utot via blfs-support wrote:
> 
> Well how does one lose control over log rotation by using cron.daily?
> 

You assume that rotating logs daily is a good idea.  On my (home)
server I run a weekly script from my crontab, and keep several weeks
of gzipped logs.  On desktops I use a different script, but again
'weekly' (the desktops are not running permanently, and might be
booting different systems when I do experimental builds, or when I
update older systems, so 'weekly' is whenever fcron decides to run
it ;-)

Anyway, as long as your method works for you (e.g. it doesn't keep
writing to the old log after the rotation, and you keep as many old
versions as you desire, then all is good.  In BLFS, one size does
not fit everyone.

> They way I suggested it, you simply drop the file into cron.daily
> 
> and your down to fiddling around with fcrontab
> 
> > > 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
> 

This message is readable, but your previous message was
incomprehensible :

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

Apparently there was a text/plain attachment after that, but because
people on some lists send html I get my mail client to use the html
first (without links).

ĸen
-- 
One pill makes you larger, And one pill makes you small.
And the ones that mother gives you, Don't do anything at all.
Go ask Alice, When she's ten feet tall.
               -- Jefferson Airplane, White Rabbit
-- 
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