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

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..

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
فبراير 24
11444
1
أبريل 25
6901
0
مارس 21
2451
4
فبراير 17
14173
0
سبتمبر 16
3546