Skip to content

Instantly share code, notes, and snippets.

@ray-odoo
Last active August 9, 2023 02:46
Show Gist options
  • Save ray-odoo/f939f32725668a4cbd31fcd77be57fb0 to your computer and use it in GitHub Desktop.
Save ray-odoo/f939f32725668a4cbd31fcd77be57fb0 to your computer and use it in GitHub Desktop.
Odoo Service
https://www.odoo.com/forum/help-1/odoo-10-runs-via-odoo-bin-but-cannot-get-to-run-as-a-service-is-this-a-systemd-upstart-thing-112460
/etc/systemd/system/odoo.service
[Unit]
Description=Odoo
Documentation=http://www.odoo.com/
[Service]
# Ubuntu/Debian convention:
Type=simple
User=ubuntu
ExecStart=/opt/odoo/odoo-bin -c /etc/odoo.conf
[Install]
WantedBy=default.target
sudo systemctl start odoo.service (starts service)
sudo systemctl stop odoo.service (stops service)
sudo systemctl restart odoo.service (restarts Service)
sudo systemctl status odoo.service (status of service)
sudo systemctl enable odoo.service (starts service at boot)
sudo systemctl disable odoo.service (disables service at boot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment