Re: The logs kept piling up, so...
- From: Lea Gris <lea.gris@xxxxxxxxxxxx>
- Date: Sun, 30 Apr 2006 17:32:46 +0200
Chanchao a écrit :
I noticed all the crap piling up in /var/log and /var/cache pretty much
uncontrolled, so I did a ' sudo rm -r /var/log/* ' but it turns out a
lot of packages don't like this at all and are unable to recreate their
own logs! I fixed it for apache2, but mysql I'll probably have to
reinstall as it keeps giving me errors when starting mysqld, even though
I did recreate a 'mysql' folder in /var/log
Is there a better way to stop logs from piling up and suffocating
everything?
man syslog.conf
Try adding something more suitable for your needs. Though I can't
recommand discarding every logs because you will dream to find some clue
in them when something goes wrong.
Depite that. A cron job perform log archiving and rotation each night so
it won't fill your /var/log forever.
If you have another host. You can as well transfer logs to a remote syslog.
--
Léa Gris - http://www.noiraude.net/
() Campagne du ruban texte brut contre les courriels en HTML,
/\ contre les pièces jointes dans un format propriétaire.
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- References:
- The logs kept piling up, so...
- From: Chanchao
- The logs kept piling up, so...
- Prev by Date: Re: NIC Cards
- Next by Date: Re: The logs kept piling up, so...
- Previous by thread: Re: The logs kept piling up, so...
- Next by thread: Re: The logs kept piling up, so...
- Index(es):
Relevant Pages
|