httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1666417 - in /httpd/httpd/trunk: docs/man/rotatelogs.8 docs/manual/programs/rotatelogs.xml support/rotatelogs.c
Date Fri, 13 Mar 2015 12:24:17 GMT
Author: rjung
Date: Fri Mar 13 12:24:17 2015
New Revision: 1666417

URL: http://svn.apache.org/r1666417
Log:
Choose "-D" instead of "-d" for the rotatelogs
option that creates the path to the log file.

I want to use "-d" for another directory related
option next where (I think) the "directory" "d"
makes more sense.

"-d" has not yet been backported, so changing
to "-D" is not a real compatibility issue.

Modified:
    httpd/httpd/trunk/docs/man/rotatelogs.8
    httpd/httpd/trunk/docs/manual/programs/rotatelogs.xml
    httpd/httpd/trunk/support/rotatelogs.c

Modified: httpd/httpd/trunk/docs/man/rotatelogs.8
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/man/rotatelogs.8?rev=1666417&r1=1666416&r2=1666417&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/man/rotatelogs.8 (original)
+++ httpd/httpd/trunk/docs/man/rotatelogs.8 Fri Mar 13 12:24:17 2015
@@ -52,7 +52,7 @@ If given, rotatelogs will execute the sp
 -f
 Causes the logfile to be opened immediately, as soon as rotatelogs starts, instead of waiting
for the first logfile entry to be read (for non-busy sites, there may be a substantial delay
between when the server is started and when the first request is handled, meaning that the
associated logfile does not "exist" until then, which causes problems from some automated
logging tools)  
 .TP
--d
+-D
 Creates the parent directories of the path that the log file will be placed in if they do
not already exist\&. This allows strftime(3) formatting to be used in the path and not
just the filename\&.  
 .TP
 -t

Modified: httpd/httpd/trunk/docs/manual/programs/rotatelogs.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/programs/rotatelogs.xml?rev=1666417&r1=1666416&r2=1666417&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/programs/rotatelogs.xml (original)
+++ httpd/httpd/trunk/docs/manual/programs/rotatelogs.xml Fri Mar 13 12:24:17 2015
@@ -85,7 +85,7 @@ and when the first request is handled, m
 associated logfile does not "exist" until then, which
 causes problems from some automated logging tools)</dd>
 
-<dt><code>-d</code></dt>
+<dt><code>-D</code></dt>
 <dd>Creates the parent directories of the path that the log file will be
 placed in if they do not already exist.  This allows <code>strftime(3)</code>
 formatting to be used in the path and not just the filename.</dd>

Modified: httpd/httpd/trunk/support/rotatelogs.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/rotatelogs.c?rev=1666417&r1=1666416&r2=1666417&view=diff
==============================================================================
--- httpd/httpd/trunk/support/rotatelogs.c (original)
+++ httpd/httpd/trunk/support/rotatelogs.c Fri Mar 13 12:24:17 2015
@@ -109,9 +109,9 @@ static void usage(const char *argv0, con
     }
     fprintf(stderr,
 #if APR_FILES_AS_SOCKETS
-            "Usage: %s [-v] [-l] [-L linkname] [-p prog] [-f] [-d] [-t] [-e] [-c] [-n number]
<logfile> "
+            "Usage: %s [-v] [-l] [-L linkname] [-p prog] [-f] [-D] [-t] [-e] [-c] [-n number]
<logfile> "
 #else
-            "Usage: %s [-v] [-l] [-L linkname] [-p prog] [-f] [-d] [-t] [-e] [-n number]
<logfile> "
+            "Usage: %s [-v] [-l] [-L linkname] [-p prog] [-f] [-D] [-t] [-e] [-n number]
<logfile> "
 #endif
             "{<rotation time in seconds>|<rotation size>(B|K|M|G)} "
             "[offset minutes from UTC]\n\n",
@@ -143,7 +143,7 @@ static void usage(const char *argv0, con
             "  -L path  Create hard link from current log to specified path.\n"
             "  -p prog  Run specified program after opening a new log file. See below.\n"
             "  -f       Force opening of log on program start.\n"
-            "  -d       Create parent directories of log file.\n" 
+            "  -D       Create parent directories of log file.\n" 
             "  -t       Truncate logfile instead of rotating, tail friendly.\n"
             "  -e       Echo log to stdout for further processing.\n"
 #if APR_FILES_AS_SOCKETS
@@ -583,9 +583,9 @@ int main (int argc, const char * const a
     apr_pool_create(&status.pool, NULL);
     apr_getopt_init(&opt, status.pool, argc, argv);
 #if APR_FILES_AS_SOCKETS
-    while ((rv = apr_getopt(opt, "lL:p:fdtvecn:", &c, &opt_arg)) == APR_SUCCESS)
{
+    while ((rv = apr_getopt(opt, "lL:p:fDtvecn:", &c, &opt_arg)) == APR_SUCCESS)
{
 #else
-    while ((rv = apr_getopt(opt, "lL:p:fdtven:", &c, &opt_arg)) == APR_SUCCESS) {
+    while ((rv = apr_getopt(opt, "lL:p:fDtven:", &c, &opt_arg)) == APR_SUCCESS) {
 #endif
         switch (c) {
         case 'l':
@@ -604,7 +604,7 @@ int main (int argc, const char * const a
         case 'f':
             config.force_open = 1;
             break;
-        case 'd':
+        case 'D':
             config.create_path = 1;
             break;
         case 't':



Mime
View raw message