From 63e273937358c687067d585c8b3ce08a8307d57a Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 8 Nov 2010 14:00:59 +0000 Subject: [PATCH] Fix the fabfile not to bomb when the server is already stopped --- fabfile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fabfile.py b/fabfile.py index 80dc564..7d3b88e 100644 --- a/fabfile.py +++ b/fabfile.py @@ -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')