Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how can I restart odoo without creating a new instance each time?

By
Yakito
on 1/20/15, 10:10 PM 1,389 views

Hello

I am creating my own module (I am learing) so I need to restart the server lots of times to see the changes. The thing is that each time I restart it I create a new instance and that seems to be conflicting with my changes.

Is there any way I fully stop my instance and restart it without creating a new one?

The commands I am using are:

to start:

/opt/odoo/openerp-server &

To end it I use cdm C

Any tips will be appreciated

 

4

Hardikgiri Goswami

--Hardikgiri Goswami--
1123
| 2 1 5
Rajkot, India
--Hardikgiri Goswami--

OpenERP/Odoo Customization/Integration Expert / Python Programmer

Skype ID : hardikgiri.goswami

Hardikgiri Goswami
On 1/21/15, 12:39 AM

Hello Yakito,

First thing you need to do is stoping the server by finding the process use command 

sudo ps -aux | grep openerp-server

then in the output you will have process id after the username.

software  4761  9.2  1.7 131124 69256 pts/10   Sl   11:04   0:04 python openerp-server
software  4776  0.0  0.0   4680   800 pts/10   S+   11:04   0:00 grep --color=auto openerp-server

here 4761 is the Process id and need to kill the process

using this command

sudo kill -9 4761

Now we will see the different way to start server and stoping it in a easy way. Killing processes as above is not good for computer health.

 

Option 1 :

You can start the OpenERP server without "&" sign.

It will run in terminal and you can see the logs over there.

on pressing of "Ctrl+C", It will stop the server and you can start again the server by just "/opt/odoo/openerp-server" command.

Option 2 :

You can start the odoo server by

cd /opt/odoo/

./odoo.py

or you can start it by

python /opt/odoo/odoo.py

After all this when you want to stop the server, Simply just press "Ctrl+C".

Regards,

Hardik

Thanks a lot for not only telling me the answer but also teaching me. Appreciate it.

Yakito
on 1/21/15, 6:34 AM

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/20/15, 10:10 PM
Seen: 1389 times
Last updated: 3/16/15, 8:10 AM