################################################################################

            This is readme file for Nemea control script.

################################################################################
Structure:
(!) is mandatory

[Nemea]
   |-[modules]   (!)
   |-[script]   (!)
        |-nemea   (!)
        |-README
   |-[sessions]
		  |-nemeadefault.conf   (!)
		  |-<id1>.conf
		  |-<id2>.conf
		  |-...
	------------ if session is running -------------------------------
		  |-[id1_running]
				  |-running_processes
				  |-id1_running.log
              |-[running_proc1_configuration1]
                     |-running-proc1-configuration1.log
                     |-running-proc1-configuration1-err.log
              |-[running_proc1_configuration2]
              |-[running_proc2_configuration1]
              |-[running_proc3_configuration1]
              |-...
              |-
		  |-[id2-running]
		  |-...
		  
It is necessary to fill following arrays in every *.conf file(s):
   - associative array "nemearunmodules": key = configuration of module name, value = command for launching module
   - associative array "runmodulenames": key = configuration of module name, value = name of module
   - normal array "modulenames": value = name of module (not used yet)
   
   You can copy&paste then from nemeadefault.conf
   
################################################################################
Usage:
There are following running-modes:
	* Expecting session ID:
	   -list: list all/selected available module(s) commands and configurations for given session
	   -status: print all/selected running modules (configurations) for given session
	   -start: start all/selected modules (configurations) for given session
	   -stop: stop modules (configurations) running in given session
		-restart: restart modules (configurations) running in given session
		-refresh: check & update session status (e.g. after some process was killed manualy)
		-restore: restore last "running_processes" file (e.g. if script was unexpectedly killed)
	   
	* Session ID independent:
	   -check: check for libtrap
      -status-all: print status of all running modules for all active sessions (NOT IMPLEMENTED YET)
      -list-all: list all modules (configurations) for all active sessions (NOT IMPLEMENTED YET)
