mirror of
https://github.com/YunoHost-Apps/libreerp_ynh.git
synced 2024-09-03 19:36:13 +02:00
19 lines
557 B
SYSTEMD
19 lines
557 B
SYSTEMD
|
[Unit]
|
||
|
Description=Advanced OpenSource ERP and CRM server
|
||
|
Requires=postgresql.service
|
||
|
After=postgresql.service
|
||
|
[Install]
|
||
|
Alias=odoo.service
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
PermissionsStartOnly=true
|
||
|
EnvironmentFile=-/etc/odoo-server.conf
|
||
|
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=/usr/local/bin/odoo-server -c /etc/odoo-server.conf --pid=/run/odoo/odoo-server.pid --syslog $OPENERP_ARGS
|
||
|
ExecStop=/bin/kill $MAINPID
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|