diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile.am | 2 | ||||
-rw-r--r-- | utils/common.h | 11 |
2 files changed, 9 insertions, 4 deletions
diff --git a/utils/Makefile.am b/utils/Makefile.am index 461c73c..9a79c29 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -4,6 +4,8 @@ libgb_la_SOURCES = common.c utils.c noinst_HEADERS = common.h utils.h +libgb_la_CFLAGS = -DDATADIR=\"$(localstatedir)\" + libgb_ladir = $(includedir)/gluster-block/utils DISTCLEANFILES = Makefile.in diff --git a/utils/common.h b/utils/common.h index 83fc580..90702b9 100644 --- a/utils/common.h +++ b/utils/common.h @@ -14,13 +14,16 @@ # include "utils.h" -# define GB_UNIX_ADDRESS "/var/run/gluster-block.socket" +# define GB_LOGDIR DATADIR "/log/gluster-block" +# define GB_INFODIR DATADIR "/run" + +# define GB_UNIX_ADDRESS GB_INFODIR "/gluster-block.socket" # define GB_TCP_PORT 24006 -# define DAEMON_LOG_FILE "/var/log/gluster-block/gluster-blockd.log" -# define CLI_LOG_FILE "/var/log/gluster-block/gluster-block-cli.log" +# define DAEMON_LOG_FILE GB_LOGDIR "/gluster-blockd.log" +# define CLI_LOG_FILE GB_LOGDIR "/gluster-block-cli.log" -# define GFAPI_LOG_FILE "/var/log/gluster-block/gluster-block-gfapi.log" +# define GFAPI_LOG_FILE GB_LOGDIR "/gluster-block-gfapi.log" # define GFAPI_LOG_LEVEL 7 # define GB_METADIR "/block-meta" |