init_stop();
init_stop(PID_FILE, mainloop);
main(int argc, char ** argv){    cl_log_set_entity(daemon_name);    cl_log_enable_stderr(TRUE);    cl_log_set_facility(LOG_USER);        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 'h':		/* Help message */		usage(daemon_name, LSB_EXIT_OK);		break;	    default:		++argerr;		break;	}    }        if (optind > argc) {	++argerr;    }        if (argerr) {	usage(daemon_name,LSB_EXIT_GENERIC);    }        // read local config file        if (req_status){	return init_status();    }      if (req_stop){	return init_stop();    }      if (req_restart) { 	init_stop();    }    return init_start();}