2022-07-25 16:00:15 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Odoo Server
|
|
|
|
After=network.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User={{ odoo_user }}
|
|
|
|
Group={{ odoo_user }}
|
2024-06-17 10:01:05 +02:00
|
|
|
Environment=PYTHONPATH={{ odoo_root_dir }}/app
|
2023-09-01 17:00:19 +02:00
|
|
|
ExecStart={{ odoo_root_dir }}/venv/bin/python3 {{ odoo_root_dir }}/app/setup/odoo -c {{ odoo_root_dir }}/etc/odoo-server.conf --proxy-mode{% if not odoo_db_manager %} --no-database-list{% endif %}
|
2023-03-22 17:00:10 +01:00
|
|
|
|
2022-07-25 16:00:15 +02:00
|
|
|
PrivateTmp=yes
|
|
|
|
PrivateDevices=yes
|
|
|
|
ProtectSystem=full
|
|
|
|
ProtectHome=yes
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
SyslogIdentifier=odoo
|
|
|
|
Restart=on-failure
|
|
|
|
StartLimitInterval=0
|
|
|
|
RestartSec=30
|
2023-09-13 23:00:21 +02:00
|
|
|
MemoryHigh=1800M
|
|
|
|
MemoryMax=2048M
|
2022-07-25 16:00:15 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|