/***************************************************************************
 *   Copyright (C) 2004 by EVER Sp. z o.o.                                 *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifdef HAVE_CONFIG_H
#include <../config.h>
#endif

#include <iostream>
#include <cstdlib>

#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <stdarg.h>

#include "gldefs.h"
#include "common.h"
#include "conf.h"
#include "cshmem.h"
#include "clog.h"
#include "monitor.h"

using namespace std;

/*
 * global variables 
 */
const int iShmSize = PS_SHM_SIZE;

/* main function - startup */
int main(int argc, char *argv[])
{
	int i;
	
	printf("%s\n", VERSION_STRING);
	
	if (!is_root()) {
		printf("It is necessary to have a superuser privileges.\n");
		exit(EXIT_SUCCESS);
	}
	
	if (str_ext_config==NULL)
		str_ext_config = strdup(APP_FILE_USERCONFIG);
	

	return EXIT_SUCCESS;
}
