Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1619

Output to JBOSS_CONSOLE_LOG should be Appended to allow Truncate for Log Rotation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 8.0.0.Alpha4
    • 8.0.0.Alpha2
    • Scripts
    • None

      The init scripts (jboss-as-domain.sh and jboss-as-standalone.sh) use the BASH redirect operator > to write output meant for the console upon starting the service to, by default, the console.log file. Truncating this file (for perhaps log rotation) whilst the service is running has proven to be ineffective due to this mode of writing.

      Please see a related issue: JBAS-6361 . Also, a useful discussion on the use of > and >> (append) operators relevant in this context can be found at: http://stackoverflow.com/questions/980283/truncating-a-file-while-its-being-used-linux .

        1. jboss-as-domain.sh.patch
          1 kB
          Dhruv AHUJA
        2. jboss-as-standalone.sh.patch
          1 kB
          Dhruv AHUJA

            Unassigned Unassigned
            new23d Dhruv AHUJA (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: