14 lines
295 B
Django/Jinja
14 lines
295 B
Django/Jinja
[Unit]
|
|
Description=Odoo
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=odoo
|
|
Environment=PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
|
|
ExecStart=/usr/bin/odoo.py --config {{ conf_file }} > /var/log/odoo/odoo-server.log 2>&1
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|