init_stop(const char *pid_file, GMainLoop*  mainloop )
init_stop(const char *pid_file)
init_stop(const char *pid_file, GMainLoop*  mainloop ){    if (pid_file == NULL) {		cl_log(LOG_ERR, "No pid file specified to kill process");		return LSB_EXIT_GENERIC;    }    long	pid;    int	rc = LSB_EXIT_OK;    pid =	get_running_pid(pid_file, NULL);	    if (pid > 0) {		if (CL_KILL((pid_t)pid, SIGTERM) < 0) {			rc = (errno == EPERM				  ?	LSB_EXIT_EPERM : LSB_EXIT_GENERIC);			fprintf(stderr, "Cannot kill pid %ld\n", pid);		}else{			while (CL_PID_EXISTS(pid)) {				sleep(1);			}		}    }    return rc;}