Skip to content

Commit

Permalink
Make logrotate work with different versions of nginx. Fixes voxpupuli…
Browse files Browse the repository at this point in the history
  • Loading branch information
danjung committed Apr 10, 2015
1 parent 9a13558 commit dfc2263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/logs.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
ifempty => false,
missingok => true,
sharedscripts => true,
postrotate => '/etc/init.d/nginx reopen_logs',
postrotate => "/etc/init.d/nginx reopen_logs 2>/dev/null || /bin/kill -USR1 `cat /var/run/nginx.pid 2>/dev/null` 2>/dev/null || logger 'logrotate for nginx failed'",
dateext => true
}
}
}

0 comments on commit dfc2263

Please sign in to comment.