do_lrm_rsc_op(NULL, rsc_id, CRMD_ACTION_STOP, NULL);
do_lrm_rsc_op(NULL, rsc_id, CRMD_ACTION_STOP, NULL, NULL);
stop_all_resources(void){	GListPtr lrm_list = NULL;	crm_info("Makeing sure all active resources are stopped before exit");		if(fsa_lrm_conn == NULL) {		return TRUE;	} else if(is_set(fsa_input_register, R_SENT_RSC_STOP)) {		crm_debug("Already sent stop operation");		return TRUE;	}	lrm_list = fsa_lrm_conn->lrm_ops->get_all_rscs(fsa_lrm_conn);	slist_iter(		rsc_id, char, lrm_list, lpc,		const char *last_op = g_hash_table_lookup(resources, rsc_id);		if(safe_str_neq(last_op, CRMD_ACTION_STOP)) {			crm_warn("Resource %s was active at shutdown", rsc_id);			do_lrm_rsc_op(NULL, rsc_id, CRMD_ACTION_STOP, NULL);		}		);	set_bit_inplace(fsa_input_register, R_SENT_RSC_STOP);		if(g_hash_table_size(shutdown_ops) == 0) {		register_fsa_input(C_FSA_INTERNAL, I_TERMINATE, NULL);	} else {		crm_info("Waiting for %d pending stop operations "			 " to complete before exiting",			 g_hash_table_size(shutdown_ops));	}	return TRUE;}