Configuration file ignored
The -c and --config option to read a configuration file don't seem to take effect.
For example, I need to run an alternate trytond server at port 8001. When I install via pip the newest 3.4.0 trytond package and run "./bin/trytond --config ./etc/trytond.conf", the server fails to bind to the specified port because I already have an existing server bound to port 8000. The output is:
[Thu Nov 13 21:36:15 2014] INFO:trytond.server:using etc/trytond.conf as configuration file
[Thu Nov 13 21:36:15 2014] INFO:trytond.server:initialising distributed objects services
Traceback (most recent call last):
File "./bin/trytond", line 80, in <module>
trytond.server.TrytonServer(options).run()
File "/home/tryton-test/tryton/local/lib/python2.7/site-packages/trytond/server.py", line 71, in run
self.start_servers()
File "/home/tryton-test/tryton/local/lib/python2.7/site-packages/trytond/server.py", line 178, in start_servers
self.jsonrpcd.append(JSONRPCDaemon(hostname, port, ssl))
File "/home/tryton-test/tryton/local/lib/python2.7/site-packages/trytond/protocols/jsonrpc.py", line 382, in __init__
self.server = server_class((interface, port), handler_class, 0)
File "/home/tryton-test/tryton/local/lib/python2.7/site-packages/trytond/protocols/jsonrpc.py", line 317, in __init__
bind_and_activate)
File "/usr/lib/python2.7/SocketServer.py", line 419, in __init__
self.server_bind()
File "/home/tryton-test/tryton/local/lib/python2.7/site-packages/trytond/protocols/jsonrpc.py", line 346, in server_bind
SimpleJSONRPCServer.server_bind(self)
File "/usr/lib/python2.7/SocketServer.py", line 430, in server_bind
self.socket.bind(self.server_address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
===
Contents of trytond.conf:
[options]
jsonrpc = *:8001
I then installed the previous version 3.2.4 via pip and using the configuration file starts the server as expected.