Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/sincorchetes/hola.log {
- compress
- delaycompress
- rotate 3
- daily
- missingok
- }
- root@sincorchetes # logrotate -fd /etc/logrotate.d/mine
- reading config file /etc/logrotate.d/mine
- Reading state from file: /var/lib/logrotate/status
- Allocating hash table for state file, size 64 entries
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Creating new state
- Handling 1 logs
- reading config file /etc/logrotate.d/mine
- Reading state from file: /var/lib/logrotate/status
- Allocating hash table for state file, size 64 entries
- Creating new state
- Handling 1 logs
- rotating pattern: /home/sincorchetes/hola.log forced from command line (3 rotations)
- empty log files are rotated, old logs are removed
- considering log /home/sincorchetes/hola.log
- Creating new state
- Now: 2021-11-30 19:34
- Last rotated at 2021-11-30 19:00
- log needs rotating
- rotating log /home/sincorchetes/hola.log, log->rotateCount is 3
- dateext suffix '-20211130'
- glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
- previous log /home/sincorchetes/hola.log.1 does not exist
- renaming /home/sincorchetes/hola.log.3.gz to /home/sincorchetes/hola.log.4.gz (rotatecount 3, logstart 1, i 3),
- renaming /home/sincorchetes/hola.log.2.gz to /home/sincorchetes/hola.log.3.gz (rotatecount 3, logstart 1, i 2),
- renaming /home/sincorchetes/hola.log.1.gz to /home/sincorchetes/hola.log.2.gz (rotatecount 3, logstart 1, i 1),
- renaming /home/sincorchetes/hola.log.0.gz to /home/sincorchetes/hola.log.1.gz (rotatecount 3, logstart 1, i 0),
- log /home/sincorchetes/hola.log.4.gz doesn't exist -- won't try to dispose of it
- renaming /home/sincorchetes/hola.log to /home/sincorchetes/hola.log.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement