On Thu, Mar 30, 2017 at 09:05:56PM +0300, Paul Tötterman wrote:
# lsof -p $(systemctl show -pMainPID nginx| cut -d= -f2)|grep /var/log
This actually showed no *.log.1 -files being open, but lsof -c nginx
|grep ... does
Hmm, so the log.1 file is referenced by a worker, and not the master
process.
# invoke-rc.d nginx rotate
# lsof -p $(systemctl show -pMainPID nginx| cut -d= -f2)|grep /var/log
Didn't start showing *.log.1 -files open, but lsof -c nginx still does
systemctl reload nginx did close the *.log.1 -files.
This is strange, I tried reproducing this behaviour but unfortunately to
no effect. If you can come up with some steps that reproduce the problem
will be very helpful pinpointing the issue.