/var/log/maas/maas.log {
 rotate 5
 weekly
 compress
 copytruncate
 missingok
 #create 620 root www-data
}

/var/log/maas/txlongpoll.log {
 rotate 5
 weekly
 compress
 missingok
 postrotate
  [ -r /var/run/maas-txlongpoll.pid ] && kill -s USR2 $(cat /var/run/maas-txlongpoll.pid) || true
 endscript
}
