Skip to content

Instantly share code, notes, and snippets.

@ovnicraft
Created May 24, 2016 03:15
Show Gist options
  • Save ovnicraft/a7df9b8403d8e24829d0ea938d5301b0 to your computer and use it in GitHub Desktop.
Save ovnicraft/a7df9b8403d8e24829d0ea938d5301b0 to your computer and use it in GitHub Desktop.
odoo service with runit
#!/bin/sh
GUNICORN=/usr/local/bin/gunicorn
ROOT=/home/odoo/odoo
PID=/var/run/gunicorn.pid
APP=openerp:service.wsgi_server.application
#openerp:wsgi.proxied.application
if [ -f $PID ]; then rm $PID; fi
cd $ROOT
exec $GUNICORN -c $ROOT/openerp-wsgi.py --pid=$PID $APP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment