From 3d5493c3f180ee9355b7fe760a97a778345d953d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 24 Sep 2015 23:35:50 +0900 Subject: [PATCH] nghttpx-logrotate: Don't use killall since we have multiple processes --- contrib/nghttpx-logrotate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/nghttpx-logrotate b/contrib/nghttpx-logrotate index f1002bd6..c715cede 100644 --- a/contrib/nghttpx-logrotate +++ b/contrib/nghttpx-logrotate @@ -6,6 +6,6 @@ delaycompress notifempty postrotate - killall -USR1 nghttpx 2> /dev/null || true + [ -s /var/run/nghttpx.pid ] && kill -USR1 `cat /var/run/nghttpx.pid` 2> /dev/null || true endscript }