You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/02/17 22:00:13 UTC

DO NOT REPLY [Bug 48761] New: rotatelogs support for hard link to static named file

https://issues.apache.org/bugzilla/show_bug.cgi?id=48761

           Summary: rotatelogs support for hard link to static named file
           Product: Apache httpd-2
           Version: 2.2.14
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: lyndon@orthanc.ca


Created an attachment (id=25012)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25012)
Patch to rotatelogs.c to add '-L filename' support.

With rotatelogs there's no simple way to determine which log file is current.
The attached patch adds a -L option allowing you to specify a filename to be
hardlinked from the current log file. E.g.:

  rotatelogs -L /var/log/apache/access -l /var/log/apache/access 604800

arranges for /var/log/apache/access to always exist as a hardlink to the
currently active version of access.nnnn. Now commands such as 'tail -F
/var/log/apache/access' will work again.

The patch is simple, but assumes the presence of link(2). I see the APR trunk
has added an apr_file_link() which would be a better solution.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48761] rotatelogs support for hard link to static named file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48761

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #25012|application/octet-stream    |text/plain
          mime type|                            |
  Attachment #25012|0                           |1
           is patch|                            |

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48761] rotatelogs support for hard link to static named file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48761

--- Comment #2 from Eric Covener <co...@gmail.com> 2010-02-19 14:58:26 UTC ---
+1 in concept here as well, cool stuff!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48761] rotatelogs support for hard link to static named file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48761

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48761] rotatelogs support for hard link to static named file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48761

Dan Poirier <po...@pobox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

--- Comment #3 from Dan Poirier <po...@pobox.com> 2010-02-25 18:01:19 UTC ---
Committed to trunk, r916377.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48761] rotatelogs support for hard link to static named file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48761

--- Comment #1 from Dan Poirier <po...@pobox.com> 2010-02-19 14:49:21 UTC ---
Created an attachment (id=25023)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25023)
Patch against trunk

I like this idea.  Here's a patch adapted to apply to trunk, using APR
functions, and adding documentation.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48761] rotatelogs support for hard link to static named file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48761

Stefan Fritsch <sf...@sfritsch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Stefan Fritsch <sf...@sfritsch.de> 2012-02-26 17:02:10 UTC ---
fixed in 2.4.1

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org