Hands-on task
The queue worker's log ate the disk
The queue worker's log /var/log/queue/worker.log has grown to 30 MB. The worker keeps the file open, and it can't be restarted. Empty the log right now without deleting or recreating the file, and for the future create the config /etc/logrotate.d/queue-worker: size-based rotation, and since the worker can't reopen its log — using copytruncate.
- truncate
- inode
- logrotate
- copytruncate
- open descriptors