Re: Nginx stop logging

2022-09-04 Thread Frank Swasey
You should verify that /run/nginx.pid actually exists and contains the PID of the master nginx process on your Rocky Linux system. I think that adding the "create 0640 nginx root" line to the logrotate config file would not help. You can issue the "kill -USR1 " where you replace "" with the PID o

Re: Nginx stop logging

2022-09-04 Thread Sergey A. Osokin
Hi Vincent, hope you're doing well. On Sun, Sep 04, 2022 at 01:22:20PM +0200, Vincent M. wrote: > Hello, > > The logs are working fine but once a day, nginx stop loging access and > then the file log file is empty. > So every day I have to restart my nginx server in order to get the logs. > It'

Re: Nginx stop logging

2022-09-04 Thread Vincent M.
On my Rocky Linux 9, I have found this file /etc/logrotate.d/nginx /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     endscript

Re: Nginx stop logging

2022-09-04 Thread Frank Swasey
This sounds like your log rotation process is not signalling nginx to write a new log. I don't know Rocky Linux, so I can't be specific in further suggestions. ~ Frank On Sun, Sep 4, 2022 at 7:24 AM Vincent M. wrote: > Hello, > > The logs are working fine but once a day, nginx stop loging acc

Nginx stop logging

2022-09-04 Thread Vincent M.
Hello, The logs are working fine but once a day, nginx stop loging access and then the file log file is empty. So every day I have to restart my nginx server in order to get the logs. It's on a Rocky Linux 9 with Nginx 1.20.1 Never seen that before, what should I check? Thanks, Vincent. ___