Step 9: Create a Systemd Service

Create a service file to manage Odoo as a system service.

sudo nano /etc/systemd/system/odoo.service

Add the following content:
[Unit]
Description=Odoo
Documentation=http://www.odoo.com
After=postgresql.service

[Service]
User=odoo
ExecStart=/usr/bin/python3 /opt/odoo/odoo18/odoo-bin -c /etc/odoo.conf
Restart=always

[Install]
WantedBy=default.target
Rating
0 0

There are no comments for now.

to be the first to leave a comment.