cl_log_set_logfile(DAEMON_LOG); cl_log_set_debugfile(DAEMON_DEBUG); CL_SIGNAL(DEBUG_INC, alter_debug); CL_SIGNAL(DEBUG_DEC, alter_debug);
main(int argc, char ** argv){    int	req_restart = FALSE;    int	req_status = FALSE;    int	req_stop = FALSE;    int	argerr = 0;    int flag;        cl_log_set_entity(crm_system_name);    cl_log_set_facility(LOG_USER);        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        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();}