cl_log_set_facility(LOG_LOCAL7);
main(int argc, char ** argv){	gboolean allow_cores = TRUE;	int	req_restart = FALSE;	int	req_status = FALSE;	int	req_stop = FALSE;	int	argerr = 0;	int flag;    	/* Redirect messages from glib functions to our handler */	g_log_set_handler(NULL,			  G_LOG_LEVEL_ERROR      | G_LOG_LEVEL_CRITICAL			  | G_LOG_LEVEL_WARNING  | G_LOG_LEVEL_MESSAGE			  | G_LOG_LEVEL_INFO     | G_LOG_LEVEL_DEBUG			  | G_LOG_FLAG_RECURSION | G_LOG_FLAG_FATAL,			  cl_glib_msg_handler, NULL);	/* and for good measure... */	g_log_set_always_fatal((GLogLevelFlags)0);        	cl_log_set_entity(crm_system_name);	cl_log_set_facility(LOG_LOCAL7);    	cl_log_set_logfile(DAEMON_LOG);	cl_log_set_debugfile(DAEMON_DEBUG);	CL_SIGNAL(SIGTERM, pengine_shutdown);	set_crm_log_level(LOG_DEV);		while ((flag = getopt(argc, argv, OPTARGS)) != EOF) {		switch(flag) {			case 'V':				alter_debug(DEBUG_INC);				break;			case 's':		/* Status */				req_status = TRUE;				break;			case 'k':		/* Stop (kill) */				req_stop = TRUE;				break;			case 'r':		/* Restart */				req_restart = TRUE;				break;			case 'h':		/* Help message */				usage(crm_system_name, LSB_EXIT_OK);				break;			case 'c':				allow_cores = TRUE;				break;			default:				++argerr;				break;		}	}    	if (optind > argc) {		++argerr;	}    	if (argerr) {		usage(crm_system_name,LSB_EXIT_GENERIC);	}    	/* read local config file */	if(allow_cores) {		crm_info("Enabling coredumps");		cl_set_corerootdir(DEVEL_DIR);	    		cl_enable_coredumps(1);		cl_cdtocoredir();		crm_info("Coredumps Enabled");	}     	if (req_status){		return init_status(PID_FILE, crm_system_name);	}  	if (req_stop){		return init_stop(PID_FILE);	}  	if (req_restart) { 		init_stop(PID_FILE);	}	crm_devel("do start");	return init_start();}