Logs - how are they handled
My old Trustix boxes handled all sorts of logging without me doing anything. When I installed a new package, the whole logging thing was taken care of automagically.
It seems to me that this is not the case with Slackware.
How do I go about handling this the best and most "Slack" way?
When I installed SAMBA, /var/log/samba/ was created, and it is starting to fill up with various logfiles. This is all good, but how can I assure that they are a rotated? This is a part of Linux I'm not used to handling.
I believe it has something to do with /etc/logrotate.d/syslog, but I must admit that reading this:
/var/log/cron /var/log/debug /var/log/maillog /var/log/messages /var/log/secure /var/log/spooler /var/log/syslog {
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null || true
endscript
}
Only adds to my confusion.
Anybody got a good, newbie-friendly, link to a tutorial/how-to?
Sincerely,
Thomas
|