Closed cidrbl0ck closed 1 year ago
Does Supervisord rely upon logrotate or does it perform it's own rotations?
supervisord
performs its own rotations. It does not use logrotate to do this. Please see the relevant sections in the manual:
http://supervisord.org/logging.html#activity-log-rotation http://supervisord.org/configuration.html#supervisord-section-values
So Im troubleshooting a problem with log rotation on a server.. what's happening is that when logrotate is called a midnight the supervisord.log is not rotating correctly. I end up with a .log.1, .log.2 and so on. But the supervisord process is not moving to the new log file. If I restart the daemon or run
supervisorctl update
or restart then it does. I believe the problem lies with logrotate however in researching logging and rotations with supervisord I'm left with more questions than answers. The log files in question:/var/log/cloudbolt/supervisord.log
are owned byapache:apache
and lsof shows supervisord as the only pid writing to them. Does Supervisord rely upon logrotate or does it perform it's own rotations?Environment Details: CentOS 7 Supervisord 4.2.2 Logrotate 3.8.6
supervisord.conf:
The only file under /etc/supervisord.d/ - jobengine.conf
Thanks!!