From 3ef78dd01c4d9df6ba76796bef3667ea8391f8ed Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 12 Apr 2013 15:34:58 -0400 Subject: [PATCH] Fix restarting of commands with new deployment loops. (imported from commit 139d80097d74b1c7f4ec92175a2052b4acf55af1) --- tools/restart-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/restart-server b/tools/restart-server index 5979cbe93c..a4b2dee7f6 100755 --- a/tools/restart-server +++ b/tools/restart-server @@ -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)