From dfc22637a7d6fe777a6aa16ec8aa8a969f16d906 Mon Sep 17 00:00:00 2001 From: Dan Jung Date: Fri, 10 Apr 2015 12:08:50 -0700 Subject: [PATCH] Make logrotate work with different versions of nginx. Fixes #283. --- manifests/logs.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}