From 0871bc89fbedc7d1a34feb7368fb8126956f58e5 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 16 Nov 2006 16:17:02 +0000 Subject: httpd: add -i (inetd) and -f (foreground) otions. -i makes possible to run httpd in both inetd and standalone mode without recompile (or need to have two different binaries) --- include/usage.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/usage.h b/include/usage.h index db41a8e79..ef3fb63d3 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1184,7 +1184,8 @@ USE_FEATURE_DATE_ISOFMT( \ #define httpd_trivial_usage \ "[-c ]" \ - USE_FEATURE_HTTPD_WITHOUT_INETD(" [-p ]") \ + " [-p ]" \ + " [-i] [-f]" \ USE_FEATURE_HTTPD_SETUID(" [-u user[:grp]]") \ USE_FEATURE_HTTPD_BASIC_AUTH(" [-r ]") \ USE_FEATURE_HTTPD_AUTH_MD5(" [-m pass]") \ @@ -1194,7 +1195,9 @@ USE_FEATURE_DATE_ISOFMT( \ "Listens for incoming http server requests.\n\n" \ "Options:\n" \ "\t-c FILE\t\tSpecifies configuration file. (default httpd.conf)\n" \ - USE_FEATURE_HTTPD_WITHOUT_INETD("\t-p PORT\t\tServer port (default 80)\n") \ + "\t-p PORT\t\tServer port (default 80)\n" \ + "\t-i\t\tAssume that we are started frim inetd\n" \ + "\t-f\t\tDo not daemonize\n" \ USE_FEATURE_HTTPD_SETUID("\t-u USER[:GRP]\tSet uid/gid after binding to port\n") \ USE_FEATURE_HTTPD_BASIC_AUTH("\t-r REALM\tAuthentication Realm for Basic Authentication\n") \ USE_FEATURE_HTTPD_AUTH_MD5("\t-m PASS\t\tCrypt PASS with md5 algorithm\n") \ -- cgit v1.2.3