Bug#996911: systemd: dbus signal JobRemoved for a failed job is 'done' instead of 'failed'

Alexandre Rossi niol at zincube.net
Wed Oct 20 17:46:46 BST 2021


Hi,

Many thanks for your quick feedback, this is driving me crazy.

Le Wed, Oct 20, 2021 at 06:26:45PM +0200, Michael Biebl a écrit :
> > man:org.freedesktop.systemd1 says:
> > 
> >      JobRemoved() are sent out each time a new job is queued or dequeued.
> >      [...] done indicates successful execution of a job.
> > 
> > However, when I subscribe to the JobRemoved signal and I restart a failing
> > job, I get 'done' as a result.
> 
> I tried to reproduce this issue with a more minimal service:
> 
> # systemctl cat fail.service
> # /etc/systemd/system/fail.service
> [Unit]
> Description=fail
> 
> [Service]
> Type=oneshot
> ExecStart=/bin/false
> 
> # systemctl start fail
> Job for fail.service failed because the control process exited with error
> code.
> See "systemctl status fail.service" and "journalctl -xeu fail.service" for
> details.
> 
> $ python3 demo.py
> received event for unit fail.service with result failed
> 
> Looks all fine to me.

Do you get the same result with Type=simple ?

Thanks,

Alex



More information about the Pkg-systemd-maintainers mailing list