copr-be: send -HUP just to parent lighttpd process

This commit is contained in:
Pavel Raiskup 2021-12-07 19:43:00 +01:00
parent 333e10a0ce
commit 9f5ae51805

View file

@ -21,7 +21,7 @@
/usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnets 172.25.144.0/20 209.132.184.33/24 &>>/var/log/copr-backend/hitcounter-logrotate.log || :
endscript
postrotate
/usr/bin/killall -HUP lighttpd &>/dev/null || :
/usr/bin/kill -HUP $(systemctl show --property MainPID --value lighttpd) || :
/usr/bin/killall -HUP cronolog &>/dev/null || :
endscript
}