Szerző: Ivan J. Dátum: Címzett: devuan developers internal list Tárgy: Re: [devuan-dev] Amprolla mirror - log rotation
On Thu, Jun 20, 2019 at 09:12:20AM -0400, fsmithred wrote: > On 6/20/19 6:56 AM, Ivan J. wrote:
> > On Thu, Jun 20, 2019 at 10:13:26AM +1200, Daniel Reurich wrote:
> > > Hi parazyd,
> > >
> > > Can you setup a log rotation for amprolla logs... they're getting a bit
> > > long. Perhaps weekly rotation would be good.
> >
> > Are you familiar with logrotate(8)? Perhaps we could implement a config
> > file or omething in that manner. Log rotation in amprolla itself is
> > quite out of scope.
> >
>
>
>
> Put this in /etc/logrotate.d/amprolla
> I'm guessing at the location of the actual log file, and I have no idea how
> you get it onto the website, but something like this should work.
>
>
> /var/log/amprolla.txt {
> rotate 6
> weekly
> compress
> delaycompress
> missingok
> notifempty
> }
Cool! We could try this out. I'll see what we can do about the log
rsyncing to make this work.