Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Odoo 10 runs via ./odoo-bin but cannot get to run as a service - Is this a systemd / upstart thing?

Subscribe

Get notified when there's activity on this post

This question has been flagged
servicecommunityodoo10ubuntu16
7 Replies
44729 Views
Avatar
Cameron

I've installed odoo10 - by running ./odoo-bin all works, add mods, control etc, etc... happy days!

Ive create a service, and although the service appears to start  - nothing appears in my browser..

Is this a systemd / upstart thing?

Any ideas or direction would be greatly appreciated

I've even tried odoo 9 but same problem :(

I thought it was because I am also running openerp 7 - but no change when I stop that service

3
Avatar
Discard
Avatar
Ray Carnes
Best Answer

Yes - You need to convert upstart scripts to systemd.  See https://wiki.ubuntu.com/SystemdForUpstartUsers or https://www.digitalocean.com

On Ubuntu, this is how you create a service for Odoo X (tested with v10, v11, v12 and v13):

[Unit]
Description=Odoo
Documentation=http://www.odoo.com/

[Service]
# Ubuntu/Debian convention:
Type=simple
User=odoo
ExecStart=/opt/odoo/odoo-bin -c /etc/odoo-server.conf

[Install]
WantedBy=default.target

You put this in /etc/systemd/system and I called my file odooX.service so you can then do:

sudo systemctl daemon-reload (Reloads services) 

sudo systemctl start odooX.service (starts service)
sudo systemctl stop odooX.service (stops service)
sudo systemctl restart odooX.service (restarts Service)
sudo systemctl status odooX.service (status of service)
sudo systemctl enable odooX.service (starts service at boot)
sudo systemctl disable odooX.service (disables service at boot)

.


6
Avatar
Discard
Cameron
Author

YES! yes yes yes yes yes yes yes yes yes yes yes yes yes yes- thank you so so much, have a great new year!

Deepa Venkatesh

@Ray, this worked lilke a charm, thankQ so much. The same I would like to run for multi-user.target. Could you plz let me know what needs to done for that? I did place the service file in multi-user.target.wants, but got an error like, 'Unit not found'

Ray Carnes (ray)

odoo service ubuntu systemd 2023

Avatar
Stella Fredö
Best Answer

This one works on the CENTOS 7 .2for odoo 10 your service script [Unit] Description=ODOO Application Server After=network.service [Install] Alias=odoo-server.service [Service] Type=simple PermissionsStartOnly=true User=odoo Group=odoo SyslogIdentifier=odoo-server PIDFile=/run/odoo/odoo-server.pid ExecStartPre=/usr/bin/install -d -m755 -o odoo -g odoo /run/odoo ExecStart=/PATH-TO-YOUR/odoo-bin -c /etc/odoo-server.conf --pid=/run/odoo/odoo-server.pid --syslog ExecStop=/bin/kill $MAINPID [Install] WantedBy=multi-user.target

1
Avatar
Discard
Avatar
Antuan
Best Answer

This is the systemd file we are currently using

odoo.service
[Unit]
Description=ODOO Application Server
Requires=postgresql.service
After=postgresql.service
[Install]
Alias=odoo.service
[Service]
Type=simple
PermissionsStartOnly=true
User=ingeos
Group=ingeos
SyslogIdentifier=odoo
PIDFile=/run/odoo/odoo.pid
ExecStartPre=/usr/bin/install -d -m755 -o ingeos -g ingeos /run/odoo
ExecStart=/home/ingeos/odoo/server/odoo-bin -c /etc/odoo/odoo.conf --pid=/run/odoo/odoo.pid
ExecStop=/bin/kill $MAINPID
[Install]
WantedBy=multi-user.target
0
Avatar
Discard
Avatar
Alison Smith
Best Answer

Hi Cameron

We are an Odoo user in the UK and have a similar issue - any chance we can talk?

01572 338011

Thank you

Alison

0
Avatar
Discard
Abhishek Mehta

We are happy to help on same, Please contact at abhishek@erpharbor.com same email you can find on Skype too.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
How to change field's string label based on condition? Solved
community odoo10
Avatar
Avatar
Avatar
Avatar
3
Jul 23
28514
Odoo Recruitment Job Offer
community odoo10
Avatar
Avatar
Avatar
2
Jun 22
6316
Copying value from sale order line to stock move it shows only second row value in both rows. code:
community odoo10
Avatar
Avatar
Avatar
2
Sep 21
5558
How to convert time to float?
community odoo10
Avatar
1
Nov 20
8872
Domain Filter in search view for a date field not giving correct results only on Monday.
community odoo10
Avatar
Avatar
2
Mar 19
6678
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now