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); }
main(int argc, char ** argv){    int	req_restart = FALSE;    int	req_status  = FALSE;    int	req_stop    = FALSE;    int	argerr      = 0;    int flag;    struct stat buf;#ifdef DEVEL_DIR    mkdir(DEVEL_DIR, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);#endif    /* 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_logfile(DAEMON_LOG);    cl_log_set_debugfile(DAEMON_DEBUG);    cl_log_set_facility(LOG_USER);    CL_SIGNAL(DEBUG_INC, alter_debug);    CL_SIGNAL(DEBUG_DEC, alter_debug);    if(stat(DEVEL_DIR, &buf) != 0) {	    cl_perror("Stat of %s failed... exiting", DEVEL_DIR);	    exit(100);    }        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;			default:				++argerr;				break;		}    }        if (optind > argc) {	    ++argerr;    }        if (argerr) {	    usage(crm_system_name,LSB_EXIT_GENERIC);    }        /* read local config file */    crm_debug("Enabling coredumps");    if(cl_set_corerootdir(DEVEL_DIR) < 0){	    cl_perror("cannot set corerootdir");    }    if(cl_enable_coredumps(1) != 0) {	    crm_err("Cannot enable coredumps");    }    if(cl_cdtocoredir() != 0) {	    crm_err("Cannot cd to coredump dir");    }            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);    }	    return init_start();}