From 50641ef5e7c2956b058fcb483e1d2feab94bea43 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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