Ok, thank you, it works. 1) /etc/logrotate.d/my_app should be 644 mode and owner must be root 2) I added 'su <files owner> <files group ownership>' on the top of the body of the logrotate file 3) /usr/sbin/logrotate -d /etc/logrotate.d/my_app and /usr/sbin/logrotate -f /etc/logrotate.d/my_app help to debug
2016-01-27 22:00 GMT+01:00 Glyn Astill <glynast...@yahoo.co.uk>: > > > From: ikuzar RABE <ikuzar9...@gmail.com> > >To: Glyn Astill <glynast...@yahoo.co.uk> > >Cc: "debian-user@lists.debian.org" <debian-user@lists.debian.org> > >Sent: Wednesday, 27 January 2016, 16:56 > >Subject: Re: logrotate does not work on my log (Debian Jessie) > > > > > > > >the ownership of my_app.log.gz is not root (just a simple user, and a > simple group) > > > > > > > Right, so add a line like this to the body of your logrotate file: > > su <your files owner> <your files group ownership> >