Updated various MaxScale command line and configuration options to allow custom log, module, data, cache and language directories.

This commit is contained in:
Markus Makela
2015-04-24 22:11:49 +03:00
parent 45c3b453ec
commit eec053924c
4 changed files with 185 additions and 81 deletions

View File

@ -48,6 +48,7 @@
#include <curl/curl.h>
#include <sys/utsname.h>
#include <openssl/sha.h>
#include <gw.h>
/** Defined in log_manager.cc */
extern int lm_enabled_logfiles_bitmask;
@ -146,16 +147,16 @@ MODULE_INFO *mod_info = NULL;
if (access(fname, F_OK) == -1)
{
home = get_maxscale_home ();
snprintf(fname, MAXPATHLEN+1,"%s/modules/lib%s.so", home, module);
//home = get_maxscale_home ();
snprintf(fname, MAXPATHLEN+1,"%s/lib%s.so", get_moduledir(), module);
if (access(fname, F_OK) == -1)
{
LOGIF(LE, (skygw_log_write_flush(
LOGFILE_ERROR,
"Error : Unable to find library for "
"module: %s.",
module)));
"module: %s. Module dir: %s",
module, get_moduledir())));
return NULL;
}
}