-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Friday 03 October 2003 10:31 am, mike wrote:
I tried "logrotate" and with the "-f" option, but it displays version and brief help message. I dont believe I understand the man page to well, any pointers? I also do not have X installed on it.
Hi Mike,
Actually it's all been set up, but /var/log/messages would be rotated on weekly basis, if you want it daily, you can done so by changing:
/etc/logrotate.d/syslog:
{
sharedscripts
rotate 5
weekly <<<<<<<<<----- CHANGE THIS INTO DAILY
postrotate
/usr/bin/killall -HUP syslogd #
endscript
}
Make sure that you set your crontab to execute the command (crond.daily, logrotate). It's all there should be.
- -- Fajar http://linux.arinet.org
Linux mdk91.sistek.kom 2.4.21-0.13mdk GNU/Linux
10:55:39 up 3:21, 10 users, load average: 0.11, 0.24, 0.24
Quote of the day:
Win98 is called Win98 because you need 98 MB RAM to install it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/fPQJMai9kCFqACoRAv+NAJ9S3Yo+1r1i/LKXLwp4/5Gfcrv5cACfYSci Mo18wNo2n/G+Jpg666o8zAM= =SaM6 -----END PGP SIGNATURE-----
Thanks, Fajar I edited the /etc/logrotate.d/syslog to daily instead of weekly. Under /etc/cron.daily I have logrotate* so I should be good to go.
Mike
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com