Setting up Odoo as a system service

Next, we will want to set up Odoo as a system service and have it started automatically when the system boots.

In Ubuntu/Debian, the init system is responsible for starting services. Historically, Debian (and derived operating systems) has used sysvinit, and Ubuntu has used a compatible system called Upstart. Recently, this has changed, and the init system used in the latest version is now systemd.

This means that there are two different ways to install a system service, and you need to pick the correct one depending on the version of your operating system.

On the last Ubuntu LTS (long term support) version, 16.04, we should be using systemd. However, older versions such as 14.04 are still used in many ...

Get Odoo 11 Development Essentials - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.