Browse files

works around a bug in gunicorn where os.execlp is given and…

… blows up.

i am seeing:

    Traceback (most recent call last):
      File "/home/brian/virtualenvs/", line 146, in run
      File "/home/brian/virtualenvs/", line 178, in handle_hup
      File "/home/brian/virtualenvs/", line 301, in reexec
        os.execlp(self.START_CTX[0], *self.START_CTX['argv'])
      File "/home/brian/virtualenvs/", line 327, in execlp
        execvp(file, args)
      File "/home/brian/virtualenvs/", line 344, in execvp
        _execvpe(file, args)
      File "/home/brian/virtualenvs/", line 380, in _execvpe
        func(fullname, *argrest)
    OSError: [Errno 2] No such file or directory
  • Loading branch information...
1 parent df5b32d commit f92fcc00a50ce2f84a1bfa84da1c5d555b649429 @brosner committed May 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/start-app
2 bin/start-app
@@ -4,4 +4,4 @@ BIN_DIR=`dirname $(readlink -f $0)`
. $BIN_DIR/env
GUNICORN_OPTS="--daemon --name=${DOMAIN} --config=${SERVER_ROOT}/conf/ --pid=${SERVER_ROOT}/run/ unix:${SERVER_ROOT}/run/gunicorn.sock"
-(cd $PROJECT_ROOT && $VENV_ROOT/bin/python run_gunicorn $GUNICORN_OPTS)
+(cd $PROJECT_ROOT && $VENV_ROOT/bin/python ./ run_gunicorn $GUNICORN_OPTS)

0 comments on commit f92fcc0

Please sign in to comment.