تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
19930 أدوات العرض

In an ubuntu-server i've set log directory when openerp server start.

But I don't know when files are deleted and what append if a loop write in logs. how to manage maximum size of directory ?

الصورة الرمزية
إهمال
أفضل إجابة

Hello,

You could take a look at : /etc/logrotate.conf and /etc/logrotate.d/postgresql-common

My advice will be to copy (as root) postgresql-common file like :

cp /etc/logrotate.d/postgresql-common /etc/logrotate.d/openerp

then edit the "/etc/logrotate.d/openerp" file (vi or other editor) and change the file name on the first line (replace "/var/log/postgresql/*.log" by "/var/log/openerp-server.log")

After this, depending the size of the openerp-server.log file, you could change from weekly to daily for the logrotate frequency within /etc/logrotate.d/openerp file.

Hope this will help you.

Have a nide day. @++ Nicolas

الصورة الرمزية
إهمال
أفضل إجابة

I would not worry about the log size for OpenERP, it is really small compared to other stuff running in your linux server. Now, if you really worry about your log size, do this:

Hope this helps,

الصورة الرمزية
إهمال

I am trying to delete the log file, coz it is 18 GB, How do we delete the log file

المنشورات ذات الصلة الردود أدوات العرض النشاط
5
يوليو 24
38400
4
أكتوبر 22
90689
0
ديسمبر 17
4355
1
يوليو 24
6729
1
ديسمبر 23
2272