Bottom: 163f50499aea8749e94a5c93c4939e5f74ae1906
-Top: f1d60133c917c51b6a2e5412d02e961bac10d966
+Top: bf622b57f0b0cd063ba351dea3e4eac4a8de301f
Author: Sean Hefty <sean.hefty@intel.com>
Date: 2012-03-30 16:31:08 -0700
---
diff --git a/Makefile.am b/Makefile.am
-index 503ad72..96a4514 100644
+index 503ad72..d3d08b2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,12 +1,12 @@
INCLUDES = -I$(srcdir)/include -I$(srcdir)/linux
-AM_CFLAGS = -g -Wall -D_GNU_SOURCE
-+AM_CFLAGS = -g -Wall -D_GNU_SOURCE -DSYSCONFDIR=\"${sysconfdir}\"
++AM_CFLAGS = -g -Wall -D_GNU_SOURCE -DSYSCONFDIR=\"${sysconfdir}\" -DBINDIR=\"$(bindir)\"
bin_PROGRAMS = util/ib_acme
-sbin_PROGRAMS = svc/ib_acm
rename from acm_opts.cfg
rename to ibacm_opts.cfg
diff --git a/linux/osd.h b/linux/osd.h
-index 33ea842..3c66761 100644
+index 33ea842..c2360f3 100644
--- a/linux/osd.h
+++ b/linux/osd.h
-@@ -45,9 +45,11 @@
+@@ -45,9 +45,14 @@
#include <sys/time.h>\r
#include <netinet/in.h>\r
\r
+#ifndef SYSCONFDIR\r
+#define SYSCONFDIR "/etc/rdma"\r
+#endif\r
++#ifndef BINDIR\r
++#define BINDIR "/usr/bin"\r
++#endif\r
+#define ACM_ADDR_FILE "ibacm_addr.cfg"\r
+#define ACM_OPTS_FILE "ibacm_opts.cfg"\r
\r
-ib_acme(1), ib_acm(1)\r
+ib_acme(1), ibacm(1)\r
diff --git a/src/acm.c b/src/acm.c
-index 906c926..39c0369 100644
+index 906c926..79b0976 100644
--- a/src/acm.c
+++ b/src/acm.c
-@@ -205,11 +205,11 @@ static atomic_t counter[ACM_MAX_COUNTER];
+@@ -205,11 +205,12 @@ static atomic_t counter[ACM_MAX_COUNTER];
/*
* Service options - may be set through acm_opts file.
*/
-static char *opts_file = "/etc/ibacm/acm_opts.cfg";
-static char *addr_file = "/etc/ibacm/acm_addr.cfg";
++static char *acme = BINDIR "/ib_acme -A"
+static char *opts_file = SYSCONFDIR "/" ACM_OPTS_FILE;
+static char *addr_file = SYSCONFDIR "/" ACM_ADDR_FILE;
static char log_file[128] = "/var/log/ibacm.log";
static enum acm_addr_prot addr_prot = ACM_ADDR_PROT_ACM;
static enum acm_route_prot route_prot = ACM_ROUTE_PROT_ACM;
static enum acm_loopback_prot loopback_prot = ACM_LOOPBACK_PROT_LOCAL;
-@@ -2507,9 +2507,9 @@ static FILE *acm_open_addr_file(void)
+@@ -2507,9 +2508,9 @@ static FILE *acm_open_addr_file(void)
if ((f = fopen(addr_file, "r")))
return f;
- acm_log(0, "notice - generating acm_addr.cfg file\n");
-+ acm_log(0, "notice - generating %s file\n", addr_file);
- if (!(f = popen("ib_acme -A", "r"))) {
+- if (!(f = popen("ib_acme -A", "r"))) {
- acm_log(0, "ERROR - cannot generate acm_addr.cfg\n");
++ acm_log(0, "notice - generating %s file\n", addr_file);
++ if (!(f = popen(acme, "r"))) {
+ acm_log(0, "ERROR - cannot generate %s\n", addr_file);
return NULL;
}
pclose(f);
-@@ -3156,9 +3156,9 @@ static void show_usage(char *program)
+@@ -3156,9 +3157,9 @@ static void show_usage(char *program)
printf(" [-D] - run as a daemon (default)\n");
printf(" [-P] - run as a standard process\n");
printf(" [-A addr_file] - address configuration file\n");
+++ /dev/null
-Bottom: f1d60133c917c51b6a2e5412d02e961bac10d966
-Top: bf622b57f0b0cd063ba351dea3e4eac4a8de301f
-Author: sean.hefty@intel.com <sean.hefty@intel.com>
-Date: 2012-04-02 17:24:06 -0700
-
-Refresh of daemonize
-
----
-
-diff --git a/Makefile.am b/Makefile.am
-index 96a4514..d3d08b2 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -1,6 +1,6 @@
- INCLUDES = -I$(srcdir)/include -I$(srcdir)/linux
-
--AM_CFLAGS = -g -Wall -D_GNU_SOURCE -DSYSCONFDIR=\"${sysconfdir}\"
-+AM_CFLAGS = -g -Wall -D_GNU_SOURCE -DSYSCONFDIR=\"${sysconfdir}\" -DBINDIR=\"$(bindir)\"
-
- bin_PROGRAMS = util/ib_acme
- sbin_PROGRAMS = svc/ibacm
-diff --git a/linux/osd.h b/linux/osd.h
-index 3c66761..c2360f3 100644
---- a/linux/osd.h
-+++ b/linux/osd.h
-@@ -48,6 +48,9 @@
- #ifndef SYSCONFDIR\r
- #define SYSCONFDIR "/etc/rdma"\r
- #endif\r
-+#ifndef BINDIR\r
-+#define BINDIR "/usr/bin"\r
-+#endif\r
- #define ACM_ADDR_FILE "ibacm_addr.cfg"\r
- #define ACM_OPTS_FILE "ibacm_opts.cfg"\r
- \r
-diff --git a/src/acm.c b/src/acm.c
-index 39c0369..79b0976 100644
---- a/src/acm.c
-+++ b/src/acm.c
-@@ -205,6 +205,7 @@ static atomic_t counter[ACM_MAX_COUNTER];
- /*
- * Service options - may be set through acm_opts file.
- */
-+static char *acme = BINDIR "/ib_acme -A"
- static char *opts_file = SYSCONFDIR "/" ACM_OPTS_FILE;
- static char *addr_file = SYSCONFDIR "/" ACM_ADDR_FILE;
- static char log_file[128] = "/var/log/ibacm.log";
-@@ -2508,7 +2509,7 @@ static FILE *acm_open_addr_file(void)
- return f;
-
- acm_log(0, "notice - generating %s file\n", addr_file);
-- if (!(f = popen("ib_acme -A", "r"))) {
-+ if (!(f = popen(acme, "r"))) {
- acm_log(0, "ERROR - cannot generate %s\n", addr_file);
- return NULL;
- }