diff --git a/manifests/logs.pp b/manifests/logs.pp index 5f42508e8..7b9b4b6a9 100644 --- a/manifests/logs.pp +++ b/manifests/logs.pp @@ -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 } } \ No newline at end of file