How to do it...

To configure systemd to start Odoo, you need to perform the following steps:

  1. As root, create a file called /lib/systemd/system/odoo.service, with the following contents:
    [Unit]
    Description=Odoo 11.0
    After=postgresql.service
    
    [Service]
    Type=simple
    User=odoo
    Group=odoo
WorkingDirectory=/home/odoo/odoo-prod/project ExecStart=/home/odoo/odoo-prod/project/bin/start-odoo [Install] WantedBy=multi-user.target
  1. As root, register the service:
    # systemctl enable odoo.service
  1. As root, start the service:
    # service odoo start
  1. To stop the service, you can run the following:
    # service odoo stop
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.253.62