Dear list,

i'd like to know if anyone is interested in the improvement/bughunting
of savelog. I have/had lots of touble oops trouble with it.

A box using bering1.0-stable is running. I had a look at the newer
versions of uclibc to check if that file has been changed since I am
using it. Does not seem so. The last entry is :
"...by Guy Maor <maoratdebiandotorg> "

Whats going wrong ?
- If /var/log gets overcrowded (ie 100%) that script fails. No files get
rotated (wonder why ;-) /And/ a filled logpartion leads to
emergencies "Out of Memory" --killing Process 1233" and stuff like that.
(That notebook only has 16 MB)

- Even if /var/log/ is not full, rotation of the files does not work correctly at all, instead they are destroyed.

- Even small files in /var/log gets rotated. What a nonsense. Logfiles
are important infos, we only should compress/delete them, when they
reach certain sizes. A 35kb-file needs no rotation.

- /etc/multicron-p -> cron.daily/multicron-d
has a routine to check freespace. If low on freespace, a mail is sent.
But why not start savelog additionally and immediately  ? Hey, we are
low on space, so lets do something against... So I changed that
/etc/multicron-p in that way.

- if logfiles are filled /very/ quickly we cant trigger it every 15min
from cron. Even 5 min can be too short. (I had that 3 days before). One
of the windozes got a prg, which tried _10-14 times/second_ to reach its
server. So the /var/log/messages "exploded" (rejected packages)

I find it not acceptable, to get an embedded system to be crashed by
filled partitions.

So I have some questions left to solve all that ;-)

Starting savelog from commandline works better. The rotation works better. But it is triggert from cron. I suspect changes in the environment responsible to that.

I am searching for an entry in /proc to check the freespace of
/var/log. Did not find anything usable.

Whats the best way to check the size of a file ? Is there another way
instead of SIZE=`ls file | cut/sed/awk something` ?
I tought of something like SIZE=`ls -paramter filename`
Even "man bash" revealed nothing...

Any ideas / comments are welcome !

Greetings !




------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to