2018-05-21 10:51:03 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Odoo
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=odoo
|
|
|
|
Environment=PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
|
2018-05-21 12:41:04 +02:00
|
|
|
ExecStart={{ bin_file }} --config {{ conf_file }} > /var/log/odoo/odoo-server.log 2>&1
|
2018-05-21 10:51:03 +02:00
|
|
|
Restart=always
|
|
|
|
RestartSec=3
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|