Bug#863601: systemd-notify doesn't work because of race condition

Michael Biebl biebl at debian.org
Thu Jun 1 16:50:27 BST 2017


On Mon, 29 May 2017 09:20:52 +0200
=?UTF-8?B?0JDQvdC00YDQtdC5INCU0L7RhtC10L3QutC+?= <cnconlinux at gmail.com>
wrote:
> Package: systemd
> Version: 232
> 
> I used unit-file with options below:
> 
> Type=notify
> NotifyAccess=all
> 
> Command `systemd-notify --ready` worked only once. All other times it did
> nothing. Service was killed by systemd after timeout. systemd-notify
> returned zero code (success). No error was reported.
> 
> Workaround script I used to solve the issue:
> 
> inport systemd.daemon;
> systemd.daemon.notify('READY=1')
> 
> Another bug report might describe the same issue:
> https://bugzilla.redhat.com/show_bug.cgi?id=982376
> But in my case everything works without any sleeps.

Can you please share the complete unit file and the script you used so
we have a minimal test case to reproduce the issue.

Thanks.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20170601/b73b87fa/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list