<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - No more logging information received from standard iput of system services after systemd-journald is restarted"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=82294">82294</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>No more logging information received from standard iput of system services after systemd-journald is restarted
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>systemd-bugs@soffel.de
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>To reproduce do the following as root:

Create a service file for the wdg service at "/lib/systemd/system/wdg.service"
with the following content:
--- % ---
[Unit]
Description=wdg service
[Service]
ExecStart=/wdg.sh
Restart=on-failure
[Install]
WantedBy=multi-user.target
--- % ---

Then create the file "/wdg.sh" with the following content:
--- % ---
#!/bin/sh
while true ; do
/bin/sleep 3
/usr/bin/logger -t wdg "log ok"
/bin/echo "cout ok"
/usr/bin/logger -t wdg "echo return: $?"
done
--- % ---

Make the file "/wdg.sh" executable:
chmod +x /wdg.sh

Start the wdg service:
systemctl start wdg

Monitoring the wdg service with journalctl delivers:
journalctl -u wdg -f
--- % ---
Aug 07 15:25:38 pc systemd[1]: Starting wdg service...
Aug 07 15:25:38 pc systemd[1]: Started wdg service.
Aug 07 15:25:41 pc wdg[2519]: log ok
Aug 07 15:25:41 pc wdg.sh[2509]: cout ok
Aug 07 15:25:41 pc wdg[2521]: echo return: 0
Aug 07 15:25:44 pc wdg[2523]: log ok
Aug 07 15:25:44 pc wdg.sh[2509]: cout ok
Aug 07 15:25:44 pc wdg[2525]: echo return: 0
Aug 07 15:25:47 pc wdg[2534]: log ok
Aug 07 15:25:47 pc wdg.sh[2509]: cout ok
Aug 07 15:25:47 pc wdg[2536]: echo return: 0
...
--- % ---

Now restart journald:
systemctl restart systemd-journald

Monitoring the wdg service with journalctl now delivers:
journalctl -u wdg -f
--- % ---
Aug 07 15:33:27 pc wdg[31836]: log ok
Aug 07 15:33:27 pc wdg[31838]: echo return: 1
Aug 07 15:33:30 pc wdg[31840]: log ok
Aug 07 15:33:30 pc wdg[31842]: echo return: 1
...
--- % ---


No more logging of services standard


This behavior was detected with
- Poky Linux on ARM systemd version 199 and 206
- Fedora Release 20 64bit x86 with systemd version 208</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>