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

Michael Biebl biebl at debian.org
Wed Oct 20 17:26:45 BST 2021


Control: tags -1 + moreinfo unreproducible
Hello Alexandre

Am 20.10.21 um 18:08 schrieb Alexandre Rossi:
> Package: systemd
> Version: 247.3-6
> Severity: normal
> 
> Dear Maintainer,
> 
> 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20211020/6b07ff88/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list