47
47
" --exhaustive-db Individually enable exhaustive connection \n information for database connections. \n (default=off)",
48
48
" --exhaustive-user Individually enable exhaustive connection \n information for client connections. \n (default=off)",
49
49
" --exhaustive-cc Individually enable exhaustive connection \n information for client connections. \n (default=off)",
50
" --exhaustive-external Individually enable exhaustive logging for \n external libraries. (default=off)",
50
51
" -L, --log-appender=log4j-appender-name\n Control the destination for console output. \n (default=`console-log')",
51
52
" -o, --out=filename Redirect standard out to file. (default=`&1')",
52
53
" -e, --err=filename Redirect standard error to file. \n (default=`&2')",
74
75
" --debug-port=INT Set the port to use for the debugger. \n (default=`5005')",
75
76
" --debug-suspend Set the port to use for the debugger. \n (default=off)",
76
77
" -p, --profile Launch with jprofiler enabled. (default=off)",
77
" -P, --profiler-home=jprofiler directory\n Set the home for jprofiler. \n (default=`/opt/jprofiler5')",
78
" -a, --agentlib=agentlib Launch with agentlib enabled.",
79
" -P, --profiler-home=jprofiler directory\n Set the home for jprofiler. \n (default=`/opt/jprofiler6')",
270
278
args_info->exhaustive_db_help = eucalyptus_opts_full_help[12] ;
271
279
args_info->exhaustive_user_help = eucalyptus_opts_full_help[13] ;
272
280
args_info->exhaustive_cc_help = eucalyptus_opts_full_help[14] ;
273
args_info->log_appender_help = eucalyptus_opts_full_help[15] ;
274
args_info->out_help = eucalyptus_opts_full_help[16] ;
275
args_info->err_help = eucalyptus_opts_full_help[17] ;
276
args_info->remote_cloud_help = eucalyptus_opts_full_help[19] ;
277
args_info->remote_walrus_help = eucalyptus_opts_full_help[20] ;
278
args_info->remote_dns_help = eucalyptus_opts_full_help[21] ;
279
args_info->remote_storage_help = eucalyptus_opts_full_help[22] ;
280
args_info->disable_cloud_help = eucalyptus_opts_full_help[24] ;
281
args_info->disable_walrus_help = eucalyptus_opts_full_help[25] ;
282
args_info->disable_dns_help = eucalyptus_opts_full_help[26] ;
283
args_info->disable_storage_help = eucalyptus_opts_full_help[27] ;
284
args_info->disable_iscsi_help = eucalyptus_opts_full_help[28] ;
285
args_info->check_help = eucalyptus_opts_full_help[30] ;
286
args_info->stop_help = eucalyptus_opts_full_help[31] ;
287
args_info->fork_help = eucalyptus_opts_full_help[32] ;
288
args_info->pidfile_help = eucalyptus_opts_full_help[33] ;
289
args_info->java_home_help = eucalyptus_opts_full_help[35] ;
290
args_info->jvm_name_help = eucalyptus_opts_full_help[36] ;
291
args_info->jvm_args_help = eucalyptus_opts_full_help[37] ;
281
args_info->exhaustive_external_help = eucalyptus_opts_full_help[15] ;
282
args_info->log_appender_help = eucalyptus_opts_full_help[16] ;
283
args_info->out_help = eucalyptus_opts_full_help[17] ;
284
args_info->err_help = eucalyptus_opts_full_help[18] ;
285
args_info->remote_cloud_help = eucalyptus_opts_full_help[20] ;
286
args_info->remote_walrus_help = eucalyptus_opts_full_help[21] ;
287
args_info->remote_dns_help = eucalyptus_opts_full_help[22] ;
288
args_info->remote_storage_help = eucalyptus_opts_full_help[23] ;
289
args_info->disable_cloud_help = eucalyptus_opts_full_help[25] ;
290
args_info->disable_walrus_help = eucalyptus_opts_full_help[26] ;
291
args_info->disable_dns_help = eucalyptus_opts_full_help[27] ;
292
args_info->disable_storage_help = eucalyptus_opts_full_help[28] ;
293
args_info->disable_iscsi_help = eucalyptus_opts_full_help[29] ;
294
args_info->check_help = eucalyptus_opts_full_help[31] ;
295
args_info->stop_help = eucalyptus_opts_full_help[32] ;
296
args_info->fork_help = eucalyptus_opts_full_help[33] ;
297
args_info->pidfile_help = eucalyptus_opts_full_help[34] ;
298
args_info->java_home_help = eucalyptus_opts_full_help[36] ;
299
args_info->jvm_name_help = eucalyptus_opts_full_help[37] ;
300
args_info->jvm_args_help = eucalyptus_opts_full_help[38] ;
292
301
args_info->jvm_args_min = 0;
293
302
args_info->jvm_args_max = 0;
294
args_info->debug_help = eucalyptus_opts_full_help[38] ;
295
args_info->debug_port_help = eucalyptus_opts_full_help[39] ;
296
args_info->debug_suspend_help = eucalyptus_opts_full_help[40] ;
297
args_info->profile_help = eucalyptus_opts_full_help[41] ;
298
args_info->profiler_home_help = eucalyptus_opts_full_help[42] ;
303
args_info->debug_help = eucalyptus_opts_full_help[39] ;
304
args_info->debug_port_help = eucalyptus_opts_full_help[40] ;
305
args_info->debug_suspend_help = eucalyptus_opts_full_help[41] ;
306
args_info->profile_help = eucalyptus_opts_full_help[42] ;
307
args_info->agentlib_help = eucalyptus_opts_full_help[43] ;
308
args_info->profiler_home_help = eucalyptus_opts_full_help[44] ;
522
534
write_into_file(outfile, "exhaustive-user", 0, 0 );
523
535
if (args_info->exhaustive_cc_given)
524
536
write_into_file(outfile, "exhaustive-cc", 0, 0 );
537
if (args_info->exhaustive_external_given)
538
write_into_file(outfile, "exhaustive-external", 0, 0 );
525
539
if (args_info->log_appender_given)
526
540
write_into_file(outfile, "log-appender", args_info->log_appender_orig, 0);
527
541
if (args_info->out_given)
567
581
write_into_file(outfile, "debug-suspend", 0, 0 );
568
582
if (args_info->profile_given)
569
583
write_into_file(outfile, "profile", 0, 0 );
584
if (args_info->agentlib_given)
585
write_into_file(outfile, "agentlib", args_info->agentlib_orig, 0);
570
586
if (args_info->profiler_home_given)
571
587
write_into_file(outfile, "profiler-home", args_info->profiler_home_orig, 0);
837
853
fprintf (stderr, "%s: '--debug-suspend' option depends on option 'debug'%s\n", prog_name, (additional_error ? additional_error : ""));
856
if (args_info->agentlib_given && ! args_info->profile_given)
858
fprintf (stderr, "%s: '--agentlib' ('-a') option depends on option 'profile'%s\n", prog_name, (additional_error ? additional_error : ""));
840
861
if (args_info->profiler_home_given && ! args_info->profile_given)
842
863
fprintf (stderr, "%s: '--profiler-home' ('-P') option depends on option 'profile'%s\n", prog_name, (additional_error ? additional_error : ""));
1145
1166
{ "exhaustive-db", 0, NULL, 0 },
1146
1167
{ "exhaustive-user", 0, NULL, 0 },
1147
1168
{ "exhaustive-cc", 0, NULL, 0 },
1169
{ "exhaustive-external", 0, NULL, 0 },
1148
1170
{ "log-appender", 1, NULL, 'L' },
1149
1171
{ "out", 1, NULL, 'o' },
1150
1172
{ "err", 1, NULL, 'e' },
1168
1190
{ "debug-port", 1, NULL, 0 },
1169
1191
{ "debug-suspend", 0, NULL, 0 },
1170
1192
{ "profile", 0, NULL, 'p' },
1193
{ "agentlib", 1, NULL, 'a' },
1171
1194
{ "profiler-home", 1, NULL, 'P' },
1175
c = getopt_long (argc, argv, "Vu:h:c:w:D:vl:xL:o:e:CSfj:J:X:dpP:", long_options, &option_index);
1198
c = getopt_long (argc, argv, "Vu:h:c:w:D:vl:xL:o:e:CSfj:J:X:dpa:P:", long_options, &option_index);
1177
1200
if (c == -1) break; /* Exit from `while (1)' loop. */
1417
case 'a': /* Launch with agentlib enabled.. */
1420
if (update_arg( (void *)&(args_info->agentlib_arg),
1421
&(args_info->agentlib_orig), &(args_info->agentlib_given),
1422
&(local_args_info.agentlib_given), optarg, 0, 0, ARG_STRING,
1423
check_ambiguity, override, 0, 0,
1394
1429
case 'P': /* Set the home for jprofiler.. */
1397
1432
if (update_arg( (void *)&(args_info->profiler_home_arg),
1398
1433
&(args_info->profiler_home_orig), &(args_info->profiler_home_given),
1399
&(local_args_info.profiler_home_given), optarg, 0, "/opt/jprofiler5", ARG_STRING,
1434
&(local_args_info.profiler_home_given), optarg, 0, "/opt/jprofiler6", ARG_STRING,
1400
1435
check_ambiguity, override, 0, 0,
1401
1436
"profiler-home", 'P',
1402
1437
additional_error))
1491
/* Individually enable exhaustive logging for external libraries.. */
1492
else if (strcmp (long_options[option_index].name, "exhaustive-external") == 0)
1496
if (update_arg((void *)&(args_info->exhaustive_external_flag), 0, &(args_info->exhaustive_external_given),
1497
&(local_args_info.exhaustive_external_given), optarg, 0, 0, ARG_FLAG,
1498
check_ambiguity, override, 1, 0, "exhaustive-external", '-',
1456
1503
/* Do not try to bootstrap cloud services locally.. */
1457
1504
else if (strcmp (long_options[option_index].name, "remote-cloud") == 0)