[Cluster-devel] [PATCH] rgmanager: Support RGMANAGER_DEBUG env. variable
Lon Hohberger
lhh at redhat.com
Mon Mar 30 21:14:00 UTC 2009
Signed-off-by: Lon Hohberger <lhh at 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
More information about the Cluster-devel
mailing list