:: Re: [devuan-dev] Amprolla mirror - …
Etusivu
Poista viesti
Vastaa
Lähettäjä: fsmithred
Päiväys:  
Vastaanottaja: devuan-dev
Aihe: Re: [devuan-dev] Amprolla mirror - log rotation
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
}