MCPcopy Create free account
hub / github.com/apache/httpd / usage

Function usage

server/main.c:376–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376static void usage(process_rec *process)
377{
378 const char *bin = process->argv[0];
379 int pad_len = strlen(bin);
380
381 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
382 "Usage: %s [-D name] [-d directory] [-f file]", bin);
383
384 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
385 " %*s [-C \"directive\"] [-c \"directive\"]", pad_len, " ");
386
387#ifdef WIN32
388 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
389 " %*s [-w] [-k start|restart|stop|shutdown] [-n service_name]",
390 pad_len, " ");
391 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
392 " %*s [-k install|config|uninstall] [-n service_name]",
393 pad_len, " ");
394#else
395/* XXX not all MPMs support signalling the server in general or graceful-stop
396 * in particular
397 */
398 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
399 " %*s [-k start|restart|graceful|graceful-stop|stop]",
400 pad_len, " ");
401#endif
402 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
403 " %*s [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]",
404 pad_len, " ");
405 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
406 "Options:");
407
408 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
409 " -D name : define a name for use in "
410 "<IfDefine name> directives");
411 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
412 " -d directory : specify an alternate initial "
413 "ServerRoot");
414 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
415 " -f file : specify an alternate ServerConfigFile");
416 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
417 " -C \"directive\" : process directive before reading "
418 "config files");
419 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
420 " -c \"directive\" : process directive after reading "
421 "config files");
422
423#ifdef NETWARE
424 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
425 " -n name : set screen name");
426#endif
427#ifdef WIN32
428 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
429 " -n name : set service name and use its "
430 "ServerConfigFile and ServerRoot");
431 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
432 " -k start : tell Apache to start");
433 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,

Callers 1

mainFunction · 0.70

Calls 2

destroy_and_exit_processFunction · 0.85
ap_log_errorFunction · 0.50

Tested by

no test coverage detected