-
-
Save ovnicraft/a7df9b8403d8e24829d0ea938d5301b0 to your computer and use it in GitHub Desktop.
odoo service with runit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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