콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
20154 화면

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
7월 24
39144
4
10월 22
91374
0
12월 17
4509
1
7월 24
7165
1
12월 23
2556