Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5897 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

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

ผู้เขียน คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

Not enough points to accept my own answer..

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 24
11541
1
เม.ย. 25
7017
0
มี.ค. 21
2523
How to read a configuration setting ? แก้ไขแล้ว
4
ก.พ. 17
14348
0
ก.ย. 16
3616