| Version 1 (modified by , 4 years ago) (diff) |
|---|
Logrotate
}}} #!sh [krit@Mosh ~]$ more /etc/logrotate.d/actdaslog /tmp/ActDasLog/*.log {
su krit krit #size 500k rotate 7 daily missingok notifempty delaycompress compress postrotate
touch /tmp/ActDasLog/mosq_feed_actDas_11_firmware.log chown krit:krit /tmp/ActDasLog/mosq_feed_actDas_11_firmware.log
endscript
} }}}
To run the logroate file with
[root@Mosh logrotate.d]# logrotate -f /etc/logrotate.d/actdaslog --state /tmp/logrotate-state --verbose
![(please configure the [header_logo] section in trac.ini)](/Utils/chrome/site/your_project_logo.png)