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: [email protected]
        ReportedBy: [email protected]


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to