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

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



Good to go.

On Mon, 2009-03-30 at 17:14 -0400, Lon Hohberger wrote:
> 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())


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