Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
97908 Переглядів

Hi

I need to stop odoo12 server through Ubuntu terminal. I have tried "sudo /etc/init.d/odoo-server stop" and 

"service odoo stop" but didn't work. is there anyway to stop it and restart it again?

Thank you

Аватар
Відмінити
Найкраща відповідь

Hi Nezar,

The service can be called directly with "service your-service action"
You can stop the service like this:

sudo service odoo-server stop

And start it like this:

sudo service odoo-server start

Notice that the service name can be different, depending on how you've installed the Odoo instance. You can also run the Odoo instance from the terminal (after stopping it) like this:

./odoo-bin -u your_module_to_update -c /etc/odoo-server.conf

If you don't know the name of your service you can find it out by printing out the list of services and grepping (searching) on Odoo:

ls /etc/init.d | grep odoo

You will get an output with all available services which contain the name "odoo". An example on my own VM:


Regards,
Yenthe

Аватар
Відмінити

Thanks for the explanation, although I get "No such process odoo-server"

same for me

write odoo instead of odoo-server :
sudo service odoo-server start
sudo service odoo start
sudo service odoo-server stop
sudo service odoo start

Найкраща відповідь

thanks !

Аватар
Відмінити
Автор Найкраща відповідь

Thank you so much Yenthe. I really appreciate your answer.



Аватар
Відмінити