Skip to Content
Odoo Меню
  • Увійти
  • Спробуйте це безкоштовно
  • Додатки
    Фінанси
    • Бухоблік
    • Виставлення рахунку
    • Витрати
    • Електронні таблиці (BI)
    • Документи
    • Підпис
    Продажі
    • CRM
    • Продажі
    • POS Магазин
    • POS Ресторан
    • Підписки
    • Оренда
    Веб-сайти
    • Конструктор веб-сайту
    • Електронна комерція
    • Блог
    • Форум
    • Живий чат
    • Електронне навчання
    Ланцюг поставок
    • Склад
    • Виробництво
    • PLM
    • Купівлі
    • Технічне обслуговування
    • Якість
    Кадри
    • Співробітники
    • Рекрутинг
    • Відпустки
    • Оцінювання
    • Рекомендації
    • Автотранспорт
    Маркетинг
    • Маркетинг соцмереж
    • Email-маркетинг
    • SMS-маркетинг
    • Події
    • Автом. маркетингу
    • Опитування
    Послуги
    • Проект
    • Табелі
    • Виїзне обслуговування
    • Служба підтримки
    • Планування
    • Призначення
    Продуктивність
    • Обговорення
    • Схвалення
    • IoT
    • IP-телефонія
    • База знань
    • WhatsApp
    Сторонні модулі Odoo Studio Платформа Odoo Cloud
  • Сфери
    Роздрібна торгівля
    • Книжковий магазин
    • Магазин одягу
    • Магазин меблів
    • Продуктовий магазин
    • Магазин будівельних матеріалів
    • Магазин іграшок
    Food & Hospitality
    • Бар та паб
    • Ресторан
    • Фастфуд
    • Guest House
    • Дистриб'ютор напоїв
    • Hotel
    Нерухомість
    • Real Estate Agency
    • Архітектурна фірма
    • Будівництво
    • Управління нерухомістю
    • Садівництво
    • Асоціація власників нерухомості
    Консалтинг
    • Бухгалтерська компанія
    • Партнер Odoo
    • Агенція маркетингу
    • Юридична фірма
    • Придбання Талантів
    • Аудит та сертифікація
    Виробництво
    • Textile
    • Metal
    • Меблі
    • Їжа
    • Brewery
    • Корпоративні подарунки
    Здоров'я & Фітнес
    • Спортивний клуб
    • Оптика
    • Фітнес-центр
    • Практики здоров'я
    • Аптека
    • Салон краси
    Trades
    • Ремонтник
    • IT-обладнання та Підтримка
    • Системи сонячної енергії
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Інші
    • Nonprofit Organization
    • Екологічна агенція
    • Оренда білбордів
    • Фотографія
    • Лізинг велосипедів
    • Реселлер програмного забезпечення
    Browse all Industries
  • Спільнота
    Навчання
    • Навчальний посібник
    • Документація
    • Сертифікації
    • Тренування
    • Блог
    • Подкаст
    Сприяйте Освіті
    • Програма навчання
    • Бізнес гра Scale Up!
    • Відвідайте Odoo
    Отримайте програмне забезпечення
    • Завантаження
    • Порівняйте версії
    • Релізи
    Співпрацюйте
    • Github
    • Форум
    • Події
    • Переклади
    • Стати партнером
    • Services for Partners
    • Зареєструйте вашу бухгалтерську фірму
    Отримайте послуги
    • Знайдіть партнера
    • Знайдіть бухгалтера
    • Зустріньтеся з консультантом
    • Послуги з впровадження
    • Референси клієнтів
    • Підтримка
    • Оновлення
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Отримати демо
  • Ціни
  • Допомога

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

  • CRM
  • e-Commerce
  • Бухоблік
  • Склад
  • PoS
  • Проект
  • MRP
All apps
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Допомога

Automatically start OpenERP on server boot

Підписатися

Отримуйте сповіщення про активність щодо цієї публікації

Це запитання позначене
installationscript
3 Відповіді
27831 Переглядів
Аватар
prouvez

Hello, First, sorry for my por english... i'm french!

Last night I installed Openerp 7 on a remote VPS server. I start the server from my iMac using "/opt/openerp/server/openerp-server" on the terminal with SSH. Everything runs OK.

But every time I close the terminal the Openerp server goes down What can I do to keep it running?

Thank guy's!

2
Аватар
Відмінити
Marco

via bash-shell per ssh you could use "nohup [yourcommand] > /dev/null 2>&1 &" then you'll be able to close the terminal without interrupting the process launched from within that ssh session. aside from that, you'll probably need some kind of init script, e.g. /etc/init.d/openerp - you can find some basic example here: http://pastie.org/6342884 - but it's for my debian machine and probably won't work with your system without modifications (e.g. my config file is located at /etc and so on). oh, and i just stumbled upon a thread down here: http://bit.ly/YAqyYi - it provides a script for ubuntu.

Martin

If you consider that your question has been answered it is a courtesy to those who answered to indicate which answer solved your problem.

Аватар
app
Найкраща відповідь

If you're on Ubuntu, you can use an Upstart configuration file to autostart and manage your OpenERP instance.

Assuming you have a system user called "openerp", the following should work:

description "OpenERP 7.0"

start on runlevel [2345]
stop on runlevel [!2345]

respawn

exec su -s /bin/sh -c 'exec "$0" "$@"' openerp -- /opt/openerp/server/openerp-server -c /opt/openerp/config-server70.cfg --logfile=/opt/openerp/openerp-7.0.log $@

Adjust the config and log paths as you wish, and then save this in as /etc/init/openerp.conf.

Then, it will not only be automatically started on boot - as restarted if it dies, due to the respawn directive -, but you can also run restart openerp, stop openerp, etc instead of having to manually find the pid and kill it.

P.S.: The whole su -s /bin/sh -c exec ... is an Upstart "trick" to make OpenERP run as the "openerp" user, otherwise it would run as root!

6
Аватар
Відмінити
Greg Boban

Thank you for the great tip. Don't forget to enable Upstart for all users, which is done in Upstart1.8 by: 1. Uncomment "ubuntu" in file /etc/upstart-xsessions. 2. Logout of any desktop sessions. 3. Login to the default Unity session.

Also, I modified the code slightly to get it to work:

description "OpenERP 7.0"

start on runlevel [2345] stop on runlevel [!2345]

respawn

exec su -s /bin/sh -c 'exec "$0" "$@"' openerp -- /opt/openerp/v7/server/openerp-server -c /etc/openerp-server.conf --logfile=/opt/openerp/openerp-7.0.log $@

Daniel Reis

Tip to troubleshoot: sudo bash /etc/init/openerp.conf

Leonardo Donelli

Since Upstart 1.4, instead of the whole su -s /bin/sh ... ordeal, you can just use setuid <user you want to start openerp as> e.g. setuid openerp

Аватар
Daniel Reis
Найкраща відповідь

It's possible to keep your SSH sessions alive and running even if you disconnect from them For that use screen or byobu (Byobu runs on top of screen but provides additional features).

You can shut-down your laptop at the office, turn it on at home, and reconnect to the sessions you left running, and everything will be there just as you left them!

0
Аватар
Відмінити
Jagdish Panchal

@Daniel Reis: I have start my opener server using screen command but when i reboot my server, openerp server stop. is there any solution related this command pls help

Аватар
Martin
Найкраща відповідь

If you want a simple fix, just run the same command you were using and append the ampersand & after it, like this :

/opt/openerp/server/openerp-server &

That tells the server you want it to fork the command into an independently running (background) process. To bring it back to the foreground, just type fg.

fg

You don't indicate which operating system you are using, but this guide got me going immediately on an Ubuntu Precise Pangolin VPS . . .

http://www.theopensourcerer.com/2012/12/how-to-install-openerp-7-0-on-ubuntu-12-04-lts/

. . . &/or (if that is still broken) this too . . .

https://accounts.openerp.com/forum/Help-1/question/2562/

With one of those you ought to be able to reboot your VPS, and have it come back up with PostgreSQL and OpenERP ready to user without further intervention.

0
Аватар
Відмінити
Alemu

plse anybody know how to autostart the openerp server on the Debian operating system.

Jagdish Panchal

@Alemu :I have facing same prolem

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

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

Реєстрація
Related Posts Відповіді Переглядів Дія
Install Odoo Comunity 18 without 15 days free trial version Вирішено
installation
Аватар
Аватар
3
лип. 25
4380
Setting up a new odoo 18 server and am unable to install gevent==21.8.0
installation
Аватар
Аватар
Аватар
Аватар
3
черв. 25
6978
How to install Odoo 18 from Tar Source
installation
Аватар
Аватар
Аватар
Аватар
Аватар
5
трав. 25
7606
Installation tutorial for Odoo 17
installation
Аватар
Аватар
Аватар
2
трав. 25
3482
Which configuration is used
installation
Аватар
Аватар
1
серп. 24
3339
Спільнота
  • Навчальний посібник
  • Документація
  • Форум
Open Source
  • Завантаження
  • Github
  • Runbot
  • Переклади
Послуги
  • Хостинг Odoo.sh
  • Підтримка
  • Оновлення
  • Кастомні доробки
  • Навчання
  • Знайдіть бухгалтера
  • Знайдіть партнера
  • Стати партнером
Про нас
  • Наша компанія
  • Торгові активи
  • Зв'яжіться з нами
  • Вакансії
  • Події
  • Подкаст
  • Блог
  • Клієнти
  • Юридичні документи • Конфіденційність
  • Безпека
الْعَرَبيّة 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 - це набір програм для роботи з відкритим кодом, які охоплюють всі ваші потреби компанії: CRM, електронна комерція, бухгалтерський облік, склад, точка продажу, управління проектами тощо.

Унікальна пропозиція Odoo - це одночасно дуже проста у використанні та повністю інтегрована.

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