Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3456 Log rotation command file syntax error

1.480
open
Jamie Cameron
5
2009-07-23
2009-07-23
Anonymous
No

AfterI added some command lines to httpd log rotation script by typing into "Commands to run after rotation" on "Edit Log File" page, system log rotation was keeping failed to run. Accounrding to my investigation, when some lines were added to /etc/logrotate.d/httpd by webmin, it seems, a "}" character was added duplicately. it means there are two "}" characters in last 2 lines. It causes syntax error on log rotation command "logrotate".
This problem is occurred on previous version.
On deletion and modification without number of line change, this problem is not happened.

I am not sure how to solve it on webmin module, but this should be corrected ASAP.

Thanks and regards.

Discussion

  • Sample file

     
    Attachments
  • Jamie Cameron
    Jamie Cameron
    2009-07-23

    Would it be possible for you to attach the logrotate config file or section as it was before Webmin modified it?