summarylogtreecommitdiffstats
path: root/odoo.service
diff options
context:
space:
mode:
Diffstat (limited to 'odoo.service')
-rw-r--r--odoo.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/odoo.service b/odoo.service
new file mode 100644
index 000000000000..70020fd4ace1
--- /dev/null
+++ b/odoo.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Advanced OpenSource ERP and CRM server
+
+
+[Service]
+Type=simple
+PermissionsStartOnly=true
+EnvironmentFile=-/etc/conf.d/odoo
+User=odoo
+Group=odoo
+SyslogIdentifier=Odoo
+PIDFile=/run/odoo/odoo.pid
+ExecStartPre=/usr/bin/install -d -m755 -o odoo -g odoo /run/odoo
+ExecStart=/usr/bin/odoo -c $ODOO_CONF --pidfile=/run/odoo/odoo.pid $ODOO_ARGS
+ExecStop=/bin/kill $MAINPID
+
+[Install]
+WantedBy=multi-user.target