[stable ppa] Nginx 1.8.x logrotate script not working

Bug #1471236 reported by Lior Goikhburg
This bug report is a duplicate of:  Bug #1450770: logrotate action "rotate" failed. Edit Remove
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Nginx
New
Undecided
Unassigned

Bug Description

Installed it on Trusty and it seems that Nginx logrotate script has a problem:

Specifically this line in /etc/logrotate.d/nginx:
invoke-rc.d nginx rotate >/dev/null 2>&1

invoke-rc.d fails when run interactively:
# invoke-rc.d nginx rotate
initctl: invalid command: rotate
Try `initctl --help' for more information.
invoke-rc.d: initscript nginx, action "rotate" failed.

In nginx package version 1.4.6 from official ubuntu repo this line is different:
[ -s /run/nginx.pid ] && kill -USR1 `cat /run/nginx.pid`
And it works properly.

Thomas Ward (teward)
summary: - Nginx 1.8 (~teward's Nginx PPA) logrotate script
+ [stable ppa] Nginx 1.8.x logrotate script not working
Revision history for this message
Sven (muffl0n) wrote :

See https://bugs.launchpad.net/nginx/+bug/1450770 and https://bugs.launchpad.net/nginx/+bug/1476296

One solution is to remove the upstart-Script and add the init.d-Script to default runlevels like described in #5 and #7 of https://bugs.launchpad.net/nginx/+bug/1476296.

What are the odds that this simple fix will be included in a further release of this package?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.