Search code examples
python-2.7webserverodoo-8odooodoo-10

How to start odoo server automatically when system is ON


Haii everyone

How to start Odoo server automatically when system is ON.

Normally i searched in google i had found a link " http://www.serpentcs.com/serpentcs-odoo-auto-startup-script-322 "

i follow the each and every step and i started the odoo-server

ps -ax | grep python

5202 ? Sl 0:01 python /home/tejaswini/Odoo_workspace/workspace_8/odoo8/openerp-server --config /etc/odoo-server.conf --logfile /var/log/odoo-server.log

it is showing the server path also

but when i run 0.0.0.0:8069/localhost:8069 in browser it is running shows This site can’t be reached

please any one help me Thanks in advance


Solution

  • To start a service automatically when the system turns on, you need to put that service into init script. Try below command

    sudo update-rc.d <service_name> defaults
    

    In your case,

    sudo update-rc.d odoo-server defaults
    

    Hope it will help you.