Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4159

ATS 6.1.0 does not log to stdout when not started from shell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • None
    • 7.1.0
    • Core

    Description

      I have a plugin that uses printf() to print some notice messages. Then my ATS is started by systemd with just `ExecStart=/usr/bin/traffic_manager`.

      With ATS 6.0.0 I could see the printf() from my plugin with journalctl. That's because the stdout of the service is connected to the journal.

      With ATS 6.1.0 the plugin output is not shown anymore with journalctl. However, starting `traffic_manager` from the shell actually shows the plugin output.
      No file under the log directory contains the plugin output.

      That makes me think there has been some change in 6.1.0 like: "if it's not a tty, close stdout", or something like that.

      Attachments

        Activity

          People

            amc Alan M. Carroll
            lethalman Luca Bruno
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: