Changes between Initial Version and Version 1 of Logrotate
- Timestamp:
- 04/04/22 07:25:30 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Logrotate
v1 v1 1 = Logrotate = 2 3 }}} 4 #!sh 5 [krit@Mosh ~]$ more /etc/logrotate.d/actdaslog 6 /tmp/ActDasLog/*.log 7 { 8 su krit krit 9 #size 500k 10 rotate 7 11 daily 12 missingok 13 notifempty 14 delaycompress 15 compress 16 postrotate 17 touch /tmp/ActDasLog/mosq_feed_actDas_11_firmware.log 18 chown krit:krit /tmp/ActDasLog/mosq_feed_actDas_11_firmware.log 19 endscript 20 } 21 }}} 22 23 To run the logroate file with 24 {{{ 25 [root@Mosh logrotate.d]# logrotate -f /etc/logrotate.d/actdaslog --state /tmp/logrotate-state --verbose 26 }}}