Fix the fabfile not to bomb when the server is already stopped

This commit is contained in:
2010-11-08 14:00:59 +00:00
parent 1b2f9e2a68
commit 63e2739373

3
fabfile.py vendored
View File

@@ -162,8 +162,11 @@ def stop():
require('path')
with cd('%(path)s/dreddit-auth/' % env):
run('rm -f off.html')
run('ln -s templates/off.html')
run('kill `cat ./logs/celeryd.pid`')
run('kill `cat ./logs/auth.pid`')
run('rm -f ./logs/celeryd.pid')
run('rm -f ./logs/auth.pid')