Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Hello, First, sorry for my por english... i'm french!
Last night I installed Openerp 7 on a remote VPS server. I start the server from my iMac using "/opt/openerp/server/openerp-server" on the terminal with SSH. Everything runs OK.
But every time I close the terminal the Openerp server goes down What can I do to keep it running?
If you're on Ubuntu, you can use an Upstart configuration file to autostart and manage your OpenERP instance.
Assuming you have a system user called "openerp", the following should work:
description "OpenERP 7.0" start on runlevel  stop on runlevel [!2345] respawn exec su -s /bin/sh -c 'exec "$0" "$@"' openerp -- /opt/openerp/server/openerp-server -c /opt/openerp/config-server70.cfg --logfile=/opt/openerp/openerp-7.0.log $@
Adjust the config and log paths as you wish, and then save this in as /etc/init/openerp.conf.
Then, it will not only be automatically started on boot - as restarted if it dies, due to the
respawn directive -, but you can also run
stop openerp, etc instead of having to manually find the pid and kill it.
P.S.: The whole
su -s /bin/sh -c exec ... is an Upstart "trick" to make OpenERP run as the "openerp" user, otherwise it would run as
If you want a simple fix, just run the same command you were using and append the ampersand
& after it, like this :
That tells the server you want it to fork the command into an independently running (background) process. To bring it back to the foreground, just type
You don't indicate which operating system you are using, but this guide got me going immediately on an Ubuntu Precise Pangolin VPS . . .
. . . &/or (if that is still broken) this too . . .
With one of those you ought to be able to reboot your VPS, and have it come back up with PostgreSQL and OpenERP ready to user without further intervention.
You can shut-down your laptop at the office, turn it on at home, and reconnect to the sessions you left running, and everything will be there just as you left them!
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/26/13, 1:51 PM|
|Seen: 16933 times|
|Last updated: 11/24/15, 11:06 AM|