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