...
Setup
No additional tasks are necessary for log rotation on linux.
Configuration
The log rotation on Linux is managed by the linux daemon
logrotated
, and is specified in /etc/logrotate.d/supervisor
. See the man pages for logrotated
if you wish to customize the rotation policies.Rotation Policy
Rotate out the logs weekly, keeping 4 copies.
OS X
Setup
No additional task tasks are necessary for log rotation on OS X.
Rotation Policy
Rotate out the logs when they exceed 100MB in size (the default size in the logrotate.py script).
Configuration
The log rotation on OS X is managed by launchctl/launchd, and the associated .plist files are:
/Library/LaunchDaemons/com.pipelinefx.logrotate.supervisor.plist
/Library/LaunchDaemons/com.pipelinefx.logrotate.worker.plist
/Library/LaunchDaemons/com.pipelinefx.logrotate.worker.plist
Both of these plists call /Applications/pfx/qube/utils/logrotate.py;
see The logrotate.py script
...