Re: logrotate (?) screws it badly

2023-10-06 Thread Ralph Seichter via nginx
* lejeczek via nginx: > For after logs got rotated Nginx logs into: > access.log.1 & error.log.1 > and now as it should, you know > access.log & error.log You may want to try logrotate's "copytruncate" option. -Ralph ___ nginx mailing list

RE: logrotate (?) screws it badly

2023-10-06 Thread Reinis Rozitis
>postrotate > /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true > endscript >} ``` > and I wonder... > if it is logrotate's _fault_ or perhaps I screwed Nginx's configs somewhere? > For after logs got rotated Nginx logs into: access.log.1 & error.log.1 and > now as

logrotate (?) screws it badly

2023-10-06 Thread lejeczek via nginx
Hi guys. I run off distro's vanilla-default logrotate, like so: ``` /var/log/nginx/*log {     daily     rotate 10     missingok     notifempty     compress     delaycompress     sharedscripts     postrotate     /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true