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 }