www-servers/nginx: use the nginx utility command for log reopening
authorJason A. Donenfeld <zx2c4@gentoo.org>
Sun, 21 Feb 2016 19:13:34 +0000 (20:13 +0100)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Sun, 21 Feb 2016 19:13:59 +0000 (20:13 +0100)
www-servers/nginx/files/nginx.logrotate-r1

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