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 50641ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 || true',
dateext => true
}
}

0 comments on commit 50641ef

Please sign in to comment.