How to reload Nginx after logrotation?

I noticed that the logs from Nginx in /var/log/nginx do not get rotated by default (mine was already 22gb) and thus added:

/var/log/nginx/*.log {
    weekly
    rotate 4
    copytruncate
    compress
    notifempty
    missingok
}

To /etc/logrotate.conf

However, it seems like Nginx needs to be reloaded via /etc/init.d/nginx reload for it to start logging again after the old logs are rotated.

Anyone has an idea how to trigger an reload in the logrotate.conf?

Thanks!

this should help → linux - How does Nginx restart after being killed by log-rotate? - Stack Overflow

my Nginx runs on FreeBSD - so my newsyslog.conf does not help you on Linux ^^

Ipfire v2 uses a non-standard way of running its services (luckily they plan to change to Systemd for v3), so I am hesitant to try out Stackoverflow “solutions” that are clearly not IPfire specific.