Skip to main content

Posts

Showing posts from July, 2017

How to create odoo as a service

For the odoo installation steps please follow steps in my previous post. Assume i have saved my code in following path /home/pranav/my_code/odoo 1)Create “odoo-server.conf” file and copy and paste below content. [options] ; This is the password that allows database operations: admin_passwd = password db_host = localhost db_port = 5432 db_user = pranav db_password = postgres db_name = <db_name> dbfilter = <db_name> addons_path = /home/pranav/ my_code /odoo/odoo/addons,/home/pranav/ my_code /odoo/addons,/home/pranav/ my_code /custom_module logfile = /var/log/odoo/odoo-server.log xmlrpc = True xmlrpc_port=8088 2)Paste the file in "/etc" folder and change its permission and access mode chown <user_name>: -R /home/pranav/my_code/odoo chown <user_name>: /etc/odoo-server.conf chmod 640 /etc/odoo-server.conf 3)Create file "odoo-server" inside "/etc/init.d" folder with below content #!/bin/sh ### B...