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