Comment 3 for bug 1230917

Revision history for this message
Harry (harry-e) wrote : Re: php5-fpm logrotate errors after package switched to upstart

orion1864:~# lsb_release -rd
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04
orion1864:~# apt-cache policy php5-fpm
php5-fpm:
  Installed: 5.5.3+dfsg-1ubuntu3
  Candidate: 5.5.3+dfsg-1ubuntu3
  Version table:
 *** 5.5.3+dfsg-1ubuntu3 0
        500 http://ubuntu.intergenia.de/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status
orion1864:~# cat /etc/logrotate.d/php5-fpm
/var/log/php5-fpm.log {
 rotate 12
 weekly
 missingok
 notifempty
 compress
 delaycompress
 postrotate
  invoke-rc.d php5-fpm reopen-logs > /dev/null
 endscript
}
orion1864:~# dpkg -S /etc/logrotate.d/php5-fpm
php5-fpm: /etc/logrotate.d/php5-fpm
orion1864:~# invoke-rc.d php5-fpm reopen-logs
initctl: invalid command: reopen-logs
Try `initctl --help' for more information.
invoke-rc.d: initscript php5-fpm, action "reopen-logs" failed.