From ea60415b936156afd40d581ce0334237a7089829 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Wed, 22 Feb 2006 10:26:37 +0000 Subject: [PATCH] remove obsolete configuration via env. variables --- org.glite.jp.index/src/conf.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/org.glite.jp.index/src/conf.c b/org.glite.jp.index/src/conf.c index ed3a6e5..be2da5d 100644 --- a/org.glite.jp.index/src/conf.c +++ b/org.glite.jp.index/src/conf.c @@ -82,47 +82,17 @@ int glite_jp_get_conf(int argc, char **argv, char *config_file, glite_jp_is_conf default : usage(argv[0]); exit(0); break; } - // *** legacy configuration from environment *********************** - // if (!ps) { - if (env = getenv("GLITE_JPIS_PS")) { - ps = env; - } - else { fprintf(stderr,"No JP PrimaryStrorage server specified, default feeds skipped. (not fatal)\n"); - } } - - if (!conf->debug) { - env = getenv("GLITE_JPIS_DEBUG"); - conf->debug = (env != NULL) && (strcmp(env, "0") != 0); - } - if (!conf->cs) { - if (env = getenv("GLITE_JPIS_DB")) { - conf->cs = env; - } - else { fprintf(stderr,"DB contact string not specified! "\ "Using build-in default: %s \n", GLITE_JP_IS_DEFAULTCS); - } } if (!conf->port) { - if (env = getenv("GLITE_JPIS_PORT")) { - conf->port = env; - } - else { fprintf(stderr,"JP IS port not specified! "\ "Using build-in default: %s \n", GLITE_JPIS_DEFAULT_PORT_STR); - } } - if (!conf->pidfile) - conf->pidfile = getenv("GLITE_JPIS_PIDFILE"); - if (!conf->logfile) - conf->logfile = getenv("GLITE_JPIS_LOGFILE"); - // - // ***************************************************************** - // prefixes & attributes defined in: // lb.server/build/jp_job_attrs.h (created when build plugin) -- 1.8.2.3