Revert "www-servers/nginx: use the nginx utility command for log reopening"
authorManuel Rüger <mrueg@gentoo.org>
Sun, 10 Apr 2016 00:39:18 +0000 (02:39 +0200)
committerManuel Rüger <mrueg@gentoo.org>
Sun, 10 Apr 2016 00:39:18 +0000 (02:39 +0200)
Gentoo Bug: #576558

This reverts commit 3e8c33b631035683ce988e0988a06661524164f5.

www-servers/nginx/files/nginx.logrotate-r1

index 23665e5f204aa02314fdd1c325bfbbd367a81fde..a78ed7a1a79cc01f7575230509bf65779dc6a5e6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -7,6 +7,6 @@
        delaycompress
        sharedscripts
        postrotate
-               nginx -s reopen
+               test -r /run/nginx.pid && kill -USR1 `cat /run/nginx.pid`
        endscript
 }