Skip to content

Commit

Permalink
Merge pull request #1 from danjung/logrotate
Browse files Browse the repository at this point in the history
Make logrotate work with different versions of nginx.  Fixes voxpupuli#283.
  • Loading branch information
kcampos committed Apr 10, 2015
2 parents 9a13558 + dfc2263 commit 75faddf
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 75faddf

Please sign in to comment.