Comment 13 for bug 1230917

Revision history for this message
Robert Pendell (shinji257) wrote : Re: php5-fpm logrotate errors after package switched to upstart

Trusty 14.04 is out and the current php5-fpm package still has this issue as reported in my cron job task.

/etc/cron.daily/logrotate:
initctl: invalid command: reopen-logs
Try `initctl --help' for more information.
invoke-rc.d: initscript php5-fpm, action "reopen-logs" failed.
error: error running non-shared postrotate script for /var/log/php5-fpm.log of '/var/log/php5-fpm.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

Now then my question is why not access the init.d script (apparently still included) via the services command or directly? I noted at least one other service that does the same.

For now I replaced invoke-rc.d with service and I guess I'll find out in a week or so how it goes.