Fix restarting of commands with new deployment loops.

(imported from commit 139d80097d74b1c7f4ec92175a2052b4acf55af1)
This commit is contained in:
Tim Abbott 2013-04-12 15:34:58 -04:00
parent 1b3d93ad47
commit 3ef78dd01c

View File

@ -23,7 +23,7 @@ os.chdir("/home/humbug/humbug-deployments/current")
logging.info("Killing daemons")
for cmd in ('runfcgi', 'runtornado', "process_user_activity", "subscribe_new_users", "send_confirmation_emails"):
try:
subprocess.check_call(["pkill", "-f", "python manage.py " + cmd])
subprocess.check_call(["pkill", "-f", "manage.py " + cmd])
except subprocess.CalledProcessError:
print "%sCould not kill %s; is it running?%s" % (WARNING, cmd, ENDC)