[systemd-bugs] [Bug 82294] New: No more logging information received from standard iput of system services after systemd-journald is restarted

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 7 06:39:47 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=82294

          Priority: medium
            Bug ID: 82294
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: No more logging information received from standard
                    iput of system services after systemd-journald is
                    restarted
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: systemd-bugs at soffel.de
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140807/3989130b/attachment.html>


More information about the systemd-bugs mailing list