Book Image

Odoo Development Cookbook

By : Holger Brunn, Alexandre Fayolle, Daniel Reis
Book Image

Odoo Development Cookbook

By: Holger Brunn, Alexandre Fayolle, Daniel Reis

Overview of this book

Odoo is a full-featured open source ERP with a focus on extensibility. The flexibility and sustainability of open source is also a key selling point of Odoo. It is built on a powerful framework for rapid application development, both for back-end applications and front-end websites. The book starts by covering Odoo installation and administration, and provides a gentle introduction to application development. It then dives deep into several of the areas that an experienced developer will need to use. You’ll learn implement business logic, adapt the UI, and extend existing features.
Table of Contents (23 chapters)
Odoo Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Set up Odoo as a system service


For a production instance, it is very important that the Odoo server gets started when the computer reboots. On current Linux systems, there are different ways of achieving this, depending on the distribution and the server setup; either it is an init script, or a systemd configuration. This recipe shows how to do both.

Getting ready

We assume that you followed the first two recipes to install and configure your Odoo instance. Especially the deployed source of Odoo, which is at /home/odoo/odoo-prod/project/src/odoo/, and the configuration file of the instance, which is at /home/odoo/odoo-prod/project/production.conf. The scripts also makes use of the start-odoo script created in step 9 of the Install Odoo for production recipe.

You will first need to find out which initialization system is running on your system. For this, run the following:

$ dpkg -l systemd

If the last line of output starts with ii systemd, then systemd is available on your system. Otherwise...