Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5798 Lượt xem

Hello,

I installed OpenERP V7 on a fresh Debian Squeeze install, everything is working except that the config file located at /etc/openerp/openerp-server.conf doesn't seem to be taken into account, i.e. when I change the db_password value it still connect to the database although the pass is not the valid one, same for the db_user..

Any thought on this issue?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

include -c and the path/file name of your config file when you start the server

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you for your answer. Indeed it works when I launch it from command line, however I want to use the given init script, which does not seem to load the config file

Tác giả Câu trả lời hay nhất

Ok I got it, in /etc/init.d/openerp simply replacing:

start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid --chuid ${USER} --background --make-pidfile --exec ${DAEMON} -- --config=${CONFIG} --logfile=${LOGFILE}

By:

start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid --chuid ${USER} --background --make-pidfile --exec ${DAEMON} -- --config=/etc/openerp/openerp-server.conf --logfile=${LOGFILE}

did the trick

Ảnh đại diện
Huỷ bỏ
Tác giả

Not enough points to accept my own answer..

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 2 24
11465
1
thg 4 25
6923
0
thg 3 21
2469
4
thg 2 17
14217
0
thg 9 16
3577