> Odd, the oldest systemd version I have around is 38, and even that has a
> working journal that catches stdout/stderr of services.

There is some problem with systemctl status and stderr/stdout:
https://bugs.freedesktop.org/show_bug.cgi?id=55320

This leads to such behavior:

> cat ~/.config/systemd/user/test.service 
[Unit]
Description=Echo to stdout

[Service]
ExecStart=/bin/sh -c "echo Hello, world; sleep 10; exit 1"

 > srv status test
test.service - Echo to stdout
          Loaded: loaded (/home/avatar/.config/systemd/user/test.service; 
static)
          Active: failed (Result: exit-code) since Sat, 2012-10-27 18:04:02 
EEST; 2min 29s ago
         Process: 10175 ExecStart=/bin/sh -c echo Hello, world; sleep 10; exit 
1 (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/user/avatar/1/systemd-1926/test.service

> log -n1 /bin/sh --no-pager          
Oct 27 18:03:52 CLU sh[10175]: Hello, world

> log -n1 /bin/sh --no-pager -o export | grep UNIT
> 

Here is the difference:

> log -u udisks2.service -n1 -o export | grep UNIT 
_SYSTEMD_UNIT=udisks2.service

> systemctl status udisks2.service                
udisks2.service - Disk Manager
          Loaded: loaded (/usr/lib/systemd/system/udisks2.service; static)
          Active: active (running) since Fri, 2012-10-26 15:47:45 EEST; 1 day 
and 2h ago
            Docs: man:udisks(8)
        Main PID: 1974 (udisksd)
          CGroup: name=systemd:/system/udisks2.service
                  └ 1974 /usr/lib/udisks2/udisksd --no-debug

Oct 26 15:47:45 CLU udisksd[1974]: Acquired the name org.freedesktop.UDisks2 on 
the system message bus
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to