Reputation: 1013
I want to create an odoo instance version 8 in ubuntu 16. Config and service files are created, i am adding permission of files below.
Config file: - -rw-r----- 1 sic sic 311 May 25 10:12 001-sic-live-server.conf
Init file: - -rwxr-xr-x 1 sic sic 2219 May 25 10:16 001-sic-live-server
when i try to start the service log file is not created, also no service started message
Upvotes: 1
Views: 142
Reputation: 1675
Follow My steps:
1 Create conf file
sudo nano /etc/odoo8.conf
2 Create conf file data
[options]
admin_passwd = your_strong_admin_password
db_host = False
db_port = False
db_user = odoo8
db_password = False
addons_path = /opt/odoo8/addons
logfile = /var/log/odoo8.log
xmlrpc_port = 8010
3 Create service
sudo nano /lib/systemd/system/odoo8.service
4
[Unit]
Description=Odoo 8
Requires=postgresql.service
After=postgresql.service
[Service]
Type=simple
PermissionsStartOnly=true
User=odoo8
Group=odoo8
SyslogIdentifier=odoo8
ExecStart=/opt/odoo8/venv/bin/python2 /opt/odoo8/odoo-bin -c /etc/odoo8.conf
[Install]
WantedBy=multi-user.target
Then enable service.
sudo systemctl enable odoo8.service
Upvotes: 2