I'm now able to run 2 differents instances of Odoo on the same computer. How could I change de process name? It is alway « python »...
Thanks for your idea.
Linux/Unix way will be to use
bash -c "exec -a MyUniqueProcessName <command> &"
however, THIS WILL NOT WORK due to the way odoo.py is executed. The shabang in the odoo.py (the #!/usr/bin/env python) is starting an instance of python which overrides the name of the process.
A workaround is to get the PID of the process and store it in a file which you can later use to kill the process you want. Here is the most rudimentary example:
Crate file with name start_as.sh with following content:
echo $odoo_pid >$1
Than you can use
kill `cat mynew.pid`
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/20/15, 3:35 PM|
|Seen: 1175 times|
|Last updated: 3/16/15, 8:10 AM|