Installing Odoo Services

Source: Internet
Author: User

SYSV init service

copy init to /etc/init.d/ from the Odoo source Debian directory and rename it to Odoo

Cd/opt/odoo

sudo cp/opt/odoo/debian/init/etc/init.d/odoo

turn on odoo to modify the installation

For example

to modify the USER to Odoo

Set the ODOO binary to /opt/odoo/odoo-bin

Set the ODOO configuration to /opt/odoo/odoo.conf

run the following command Enable Odoo Services

sudo chmod +x/etc/init.d/odoo

sudo update-rc.d odoo default

run sudo/etc/init.d/odoo start service

run Sudo/etc/init.d/odoo stop stop service

systemd service

for Ubunttu , start with systemd Management Service

of course, Ubuntu16 is also compatible with the INIT format service and will automatically convert it to the SYSTEMD format

Create Service Description /lib/systemd/system/odoo.service

The contents are as follows

[Unit]

Description=odoo

After=postgresql.service

[Service]

Type=simple

User=odoo

Group=odoo

Execstart=/opt/odoo/odoo-bin-c/opt/odoo/odoo.conf

[Install]

Wantedby=multi-user.target

Enable Odoo Services

sudo systemctl enable Odoo.service

View service Status

sudo systemctl odoo status

Use Command start / stop service

sudo systemctl odoo start

sudo systemctl odoo stop

 

Installing Odoo Services

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.