Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
22363 Lượt xem

Hello Guys,

I followed this link from open ERP to install odoo

https://www.getopenerp.com/easy-odoo8-installation/

Now odoo runs by entering following command

cd /opt/openerp/odoo

./openerp-server

Problem is i cannot stop the service . Also when I restart the system it doesn't get autostart.

Referring to following link

http://ishwarmalvi.blogspot.in/2015/08/autostart-odooopenerp-server-on-system.html

they mentioned we need to add a daemon script to init.d.But when I add it and run I get following not found error

Starting odoo-server: start-stop-daemon: --start needs --exec or --startas

Try 'start-stop-daemon --help' for more information.

/etc/init.d/odoo-server: 37: /etc/init.d/odoo-server: --chuid: not found

/etc/init.d/odoo-server: 38: /etc/init.d/odoo-server: --exec: not found

odoo-server.

In the second link they say we have to start the service differently  with  command

sudo /etc/init.d/odoo-server start

clearly I am doing something wrong. If somebody could advice me I will be forever grateful!Thanks in adnvance




Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Inian

please try this 

https://www.linode.com/docs/websites/cms/install-odoo-9-erp-on-ubuntu-14-04

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks sarkar, the link worked perfectly.Now I can able to start and stop service and make it autostart when system is restarted.

 

 



Ảnh đại diện
Huỷ bỏ

Hello inian Please follow this step it will work for me https://www.linode.com/docs/websites/cms/install-odoo-9-erp-on-ubuntu-14-04

Câu trả lời hay nhất

Try These:

sudo chmod 755 /etc/init.d/odoo-server
sudo chown root: /etc/init.d/odoo-server
Ảnh đại diện
Huỷ bỏ