Delete archived log files using logrotate
I want to know , is it possible to delete archived log files using logrotate script. Suppose i don't want to keep /var/log/message beyond 1 day, will following will serve my purpose ?
Thanks for your attention
/sbin/killall -HUP syslogd
Should do what you want.
Bear in mind 1 day of /var/log/message is not enough. I recommend you keep the default.
If I recall correctly, the logrotate configuration file has an option for killing the files after a certain number of days.
As for me, I never do that. Disk space is cheap.
|All times are GMT -5. The time now is 01:19 AM.|