Permalink
Browse files

Fix problem with gunicorn_running checking locally for the pid file

The current implementation checks the local machine for the pid file,
so I implemented a check by calling run('ls file') to make sure
it checks on the target machine.
  • Loading branch information...
1 parent 2fd43a2 commit 364f1a5153efd9ceec942c88d33f8ac616a0adbf @rpicard rpicard committed Nov 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 fabric_gunicorn.py
View
@@ -21,7 +21,7 @@ def set_env_defaults():
def gunicorn_running():
- return files.exists(env.gunicorn_pidpath)
+ return run('ls ' + env.gunicorn_pidpath, quiet=True).succeeded
def gunicorn_running_workers():

0 comments on commit 364f1a5

Please sign in to comment.