{
int i = 0,c = 0;
int uid = 0, gid = 0;
+ int debug_level = 0;
int test_config = 0,run_foreground = 0;
char *cfg = DEFAULTCPATH;
break;
case 'd':
nowDebug();
+ debug_level = 1;
break;
case 'f':
run_foreground = 1;
if(!optarg)
ErrorExit("%s: -g needs an argument",ARGV0);
group = optarg;
- break;
+ break;
case 't':
test_config = 1;
break;
if(!optarg)
ErrorExit("%s: -D needs an argument",ARGV0);
dir = optarg;
+ break;
+ }
+ }
+
+ /* Check current debug_level
+ * Command line setting takes precedence
+ */
+ if (debug_level == 0)
+ {
+ /* Getting debug level */
+ debug_level = getDefine_Int("remoted", "debug", 0, 2);
+ while(debug_level != 0)
+ {
+ nowDebug();
+ debug_level--;
}
}
+
debug1(STARTED_MSG,ARGV0);
/* Starting the signal manipulation */
- StartSIG(ARGV0);
+ StartSIG(ARGV0);
/* Creating some randoness */