[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCH] rgmanager: Support RGMANAGER_DEBUG env. variable



Signed-off-by: Lon Hohberger <lhh redhat com>
---
 rgmanager/src/daemons/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/rgmanager/src/daemons/main.c b/rgmanager/src/daemons/main.c
index 3106b0e..7fc322c 100644
--- a/rgmanager/src/daemons/main.c
+++ b/rgmanager/src/daemons/main.c
@@ -999,6 +999,10 @@ main(int argc, char **argv)
 		}
 	}
 
+	if (getenv("RGMANAGER_DEBUG")) {
+		debug = 1;
+	}
+
 	if (!foreground && (geteuid() == 0)) {
 		daemon_init(argv[0]);
 		if (wd && !debug && !watchdog_init())
-- 
1.6.0.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]