if (req_stop){ FNRET(init_stop(PID_FILE, mainloop)); }
if (req_stop){ FNRET(init_stop(PID_FILE)); }
main(int argc, char ** argv){    cl_log_set_entity(crm_system_name);    cl_log_enable_stderr(TRUE);    cl_log_set_facility(LOG_USER);        int	req_comms_restart = FALSE;    int	req_restart = FALSE;    int	req_status = FALSE;    int	req_stop = FALSE;    int	argerr = 0;    int flag;        while ((flag = getopt(argc, argv, OPTARGS)) != EOF) {		switch(flag) {			case 's':		/* Status */				req_status = TRUE;				break;			case 'k':		/* Stop (kill) */				req_stop = TRUE;				break;			case 'r':		/* Restart */				req_restart = TRUE;				break;			case 'c':		/* Restart */				req_comms_restart = TRUE;				break;			case 'h':		/* Help message */				usage(crm_system_name, LSB_EXIT_OK);				break;			default:				++argerr;				break;		}    }        if (optind > argc) {		++argerr;    }        if (argerr) {		usage(crm_system_name,LSB_EXIT_GENERIC);    }        // read local config file        if (req_status){		FNRET(init_status(PID_FILE, crm_system_name));    }      if (req_stop){		FNRET(init_stop(PID_FILE, mainloop));    }      if (req_comms_restart) { //	init_stop();		// kill the current comms		init_server_ipc_comms(CRM_SYSTEM_CIB, cib_client_connect, default_ipc_input_destroy);	}    if (req_restart) { 		init_stop(PID_FILE, mainloop);    }    FNRET(init_start());}