Skip to content
Snippets Groups Projects
  • Roland Tapken's avatar
    d17856a1
    Make logfile's mode configurable. · d17856a1
    Roland Tapken authored
    
    The file logger currently resets the mode of the logfile to 0640.
    
    When the webserver is running as a different user than the cron job
    (but both are in the same group) the files mode has to be 0660. The
    current implementation breaks logging for the user that is not the
    owner of the logfile.
    
    This patch introduces a new config option 'logfilemode' that expects
    an octal value (defaults to 0640). Unless the value is lower or equal
    than 0 the logfiles mode will be resetted to this value.
    
    Signed-off-by: default avatarRoland Tapken <roland@bitarbeiter.net>
    d17856a1
    History
    Make logfile's mode configurable.
    Roland Tapken authored
    
    The file logger currently resets the mode of the logfile to 0640.
    
    When the webserver is running as a different user than the cron job
    (but both are in the same group) the files mode has to be 0660. The
    current implementation breaks logging for the user that is not the
    owner of the logfile.
    
    This patch introduces a new config option 'logfilemode' that expects
    an octal value (defaults to 0640). Unless the value is lower or equal
    than 0 the logfiles mode will be resetted to this value.
    
    Signed-off-by: default avatarRoland Tapken <roland@bitarbeiter.net>