[php-maint] Bug#743193: Re: invoke-rc.d: action reopen-logs is unknown, but proceeding anyway.
Adam D. Barratt
adam at adam-barratt.org.uk
Mon Mar 31 11:26:53 UTC 2014
Control: tags -1 + moreinfo unreproducible
On 2014-03-31 11:57, Mike Williams wrote:
> Package: php5-fpm
> Version: 5.5.10-1~dotdeb.1
[...]
> #683415 added a logrotate script for php5-fpm that uses reopen-logs
> to, well, reopen the logs.
> However invoke-rc.d doesn't recognise that option so every week every
> server we have emails us.
The init script in Debian's 5.5.10 packages /does/ accept that option:
$ egrep -A5 reopen-logs php5-5.5.10+dfsg-1/debian/php5-fpm.init
reopen-logs)
log_daemon_msg "Reopening $DESC logs" $NAME
if start-stop-daemon --stop --signal USR1 --oknodo --quiet \
--pidfile $PIDFILE --exec $DAEMON
then
log_end_msg 0
However the package also doesn't use that option in the logrotate
script:
/var/log/php5-fpm.log {
rotate 12
weekly
missingok
notifempty
compress
delaycompress
postrotate
/usr/lib/php5/php5-fpm-reopenlogs
endscript
}
I can't see anything broken here in the packages as shipped by Debian.
If the dotdeb packages are shipping something different that doesn't
work, you need to take that up with them.
Regards,
Adam
More information about the pkg-php-maint
mailing list