Changes between Version 4 and Version 5 of Logrotate


Ignore:
Timestamp:
04/05/22 00:22:43 (3 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Logrotate

    v4 v5  
    33{{{
    44#!sh
    5 [krit@Mosh ~]$ more /etc/logrotate.d/actdaslog
     5[root@Mosh ActDas]# more /etc/logrotate.d/actdaslog
    66/tmp/ActDasLog/*.log
    77{
    88        su krit krit
    9         #size 500k
    109        rotate 7
    1110        daily
     11        size 5M      # place size after daily, it will process if file log > 5M ignore daily
     12        copytruncate #copy to actdas.log.1 and empty actdas.log to zero
    1213        missingok
    1314        notifempty
    1415        delaycompress
    1516        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
    2017}
     18
    2119}}}
    2220