Adding the --save option when starting an Odoo server saves the configuration used in the ~/.odoorc file. We can use this file as a starting point for our server configuration, which will be stored at /etc/odoo, as shown in the following code:
$ sudo su -c "~/odoo-11.0/odoo-bin -d odoo-prod" \" --db-filter='^odoo-prod$' --without-demo=all" \" --save --stop-after-init" odoo
This will have the configuration parameters to be used by our server instance.