mirror of
https://github.com/zulip/zulip.git
synced 2026-06-21 21:32:29 +08:00
Fix restarting of commands with new deployment loops.
(imported from commit 139d80097d74b1c7f4ec92175a2052b4acf55af1)
This commit is contained in:
parent
1b3d93ad47
commit
3ef78dd01c
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user