diff --git a/manifests/logs.pp b/manifests/logs.pp index 5f42508e8..1527a18ee 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 || logger 'logrotate for nginx failed'", dateext => true } -} \ No newline at end of file +}