Hello,
I’m running bitwarden rs in a docker on an Ubuntu server.
I would like to setup logrotate on the /bwdate/bitwarden.log file.
Does anyone has a suggestion for the right logrotate.d file content?
Edit:
I just found this:
/etc/logrotate.d/bitwarden :
/var/log/bitwarden/bitwarden.log
{
rotate 52
dateext
weekly
missingok
notifempty
compress
sharedscripts
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
Does this work on Ubuntu server? I’m in doupt about the postrotate part.