[stable ppa] Nginx 1.8.x logrotate script not working
Bug #1471236 reported by
Lior Goikhburg
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.
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.
summary: |
- Nginx 1.8 (~teward's Nginx PPA) logrotate script + [stable ppa] Nginx 1.8.x logrotate script not working |
To post a comment you must log in.
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?