Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3042

Add a variable (false by default) to enable redirect to karaf.out

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0, 3.0.2, 2.3.6, 4.0.0.M3
    • Component/s: karaf
    • Labels:
      None

      Description

      Using bin/start to start Karaf means that the System.out/System.err are redirected to data/karaf.out.

      The problem is that this redirection is by default (so the users may not know about the karaf.out file) and there is not rotation or so on this file: it means that, in production, it keeps on growing:

      exec "$KARAF_HOME"/bin/karaf server "$@" >> "$KARAF_DATA/karaf.out" 2>&1 &
      

      It would be great to send to /dev/null by default, and add a variable to enable the redirect (in karaf.out or any file defined by the user).

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              jbonofre Jean-Baptiste Onofré
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: