Module ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Str ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr TupleLoad Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults CompareNotEq NameLoad Str Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr attr Str If CompareGt Call NameLoad NameLoad Num body Print BinOpMod Str Call AttributeLoad Str attr NameLoad orelse Print Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Print BinOpMod Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Print BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore SubscriptLoad NameLoad Index Str If SubscriptLoad NameLoad Index Str body If SubscriptLoad NameLoad Index Str body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad Str Assign NameStore CompareEq NameLoad Str If NameLoad body If UnaryOpNot NameLoad body Print Str Expr Call AttributeLoad NameLoad attr Str Print Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListLoad Str Str Str NameLoad keyword NameLoad keyword NameLoad Print Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Print Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr orelse Print Str decorator_list decorator_list
N/A optparse make_option django.core.management.base LabelCommand subprocess Popen PIPE auditcare.models AuditEvent django.conf settings N/A GUNICORN_CMD python manage.py run_gunicorn Command N/A LabelCommand N/A N/A help Slay dangling gunicorn processes with no remorse. N/A args N/A label N/A option_list N/A N/A LabelCommand option_list N/A N/A make_option --makeitso action store_true dest makeitso default False help DO IT N/A make_option --aggressive action store_true dest aggressive default False help Don't use supervisorctl N/A make_option --no-remorse action store_true dest no_input default False help I know what I'm doing, no confirmation please. check_unicorns N/A N/A self N/A N/A N/A p N/A Popen N/A pgrep -f GUNICORN_CMD stdout PIPE stderr PIPE N/A pids N/A filter N/A N/A N/A x N/A N/A x N/A N/A N/A N/A N/A N/A N/A p stdout read strip split N/A N/A N/A len pids 0 N/A N/A N/A 
Found running gunicorn processes: 
	%s N/A N/A ,  join pids N/A N/A 
No gunicorns found, you're safe now. N/A supervisor N/A N/A self command N/A N/A N/A supervisor_command N/A sudo supervisorctl %s commcare-hq-%s-django N/A command N/A settings SERVER_ENVIRONMENT N/A N/A 	Calling %s supervisor_command N/A p N/A Popen N/A N/A supervisor_command split stdout PIPE stderr PIPE N/A supervisor_results N/A N/A N/A p stdout read N/A N/A 	Results: %s supervisor_results N/A supervisor_results N/A handle N/A N/A self N/A args options N/A N/A aggressive N/A options N/A aggressive N/A N/A options N/A makeitso N/A N/A N/A options N/A no_input N/A N/A do_kill True N/A N/A check_kill N/A raw_input You sure you want to slay these gunicorn processes???

                    Note, you should only do this when you know supervisorctl is in a stuck state.
                    So, in short, I hope you know what you're doing.

                    Proceed with the slaying? (yes/no)  N/A do_kill N/A check_kill yes N/A do_kill N/A N/A N/A aggressive N/A N/A 	Shutting down django via supervisor: N/A N/A N/A self supervisor stop N/A 	Proceeding to kill gunicorn processes. N/A N/A N/A self check_unicorns N/A pk N/A Popen N/A pkill -9 -f GUNICORN_CMD stdout PIPE stderr PIPE N/A N/A N/A N/A pk stdout read N/A N/A aggressive N/A N/A 	Restarting django via supervisor: N/A N/A N/A self supervisor start N/A N/A N/A AuditEvent audit_command N/A N/A 	No slaying...for now N/A N/A