If the operating system you are using is recent, such as Debian 8 or Ubuntu 16.04, you should be using systemd for the init system.
To add a new service to the system, we just need to create a file describing it. Create a /lib/systemd/system/odoo.service file with the following content:
[Unit] Description=Odoo After=postgresql.service [Service] Type=simple User=odoo Group=odoo ExecStart=/home/odoo/odoo-11.0/odoo-bin -c /etc/odoo/odoo.conf [Install] WantedBy=multi-user.target