fixing php5-fpm logrotate on ubuntu 14.04
I was getting an error about the logrotate
invoke-rc.d: initscript php5-fpm, action "reopen-logs" failed. error: error running non-shared post rotate script for /var/log/php5-fpm.log of '/var/log/php5-fpm.log ' There are two issues, the invoke.d does not seem to have a reopen-logs options, and the logrotate program does not like that systemd has some ownership over /var/log. To fix these issues, I call the init.d script that has reopen-logs option, and I call the php5 logrotate with the su option at the end.