Rename Odoo Service In Linux
Odoo has a default service name that runs once you finished install it. But if you willing to change and make it custom and private, you can follow the step below :
- Login as root
- Type service odoo stop. Odoo means the default service name
- Go to /etc/odoo/
- Copy odoo.conf to /etc/ by typing cp odoo.conf /etc/odoo-server.conf
- Remove odoo folder
- Go to /etc/init.d
- Copy odoo service by type in cp odoo odoo-server
- Remove odoo service by typing rm odoo
- Open odoo-server by tryping nano odoo-server
- Change CONFIG from this :
- Then type in systemctl daemon-reload
Replace ExecStart from this :
Open odoo server by typing nano odoo-server
Copy odoo.service to odoo-server by typing cp odoo.service odoo-server
Go to /lib/systemd/system
Restart server. odoo now should be started with new name under odoo-server than odoo