From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: systemd startup notification for iwd?
Date: Thu, 10 Dec 2020 20:27:31 +0000 [thread overview]
Message-ID: <5253e0bd-31f9-92cc-c566-ecc28fc7aebb@gmail.com> (raw)
In-Reply-To: <20201210201315.2885.69092@ml01.vlan13.01.org>
[-- Attachment #1: Type: text/plain, Size: 945 bytes --]
Hi Bruce,
On 12/10/20 2:13 PM, Bruce Johnson wrote:
> I'm trying to figure out how to resolve what appears to be a race condition between iwd and my application that uses it through the API. Despite my attempts so far to tell systemd to start iwd before my application, the best I've gotten thus far is "Starting..." messages with the same timestamp for the two services. Has there been any consideration of adding a call to systemd's sd_notify function when iwd is ready to accept requests?
I'm not sure why systemd is involved in this actually? There really isn't a
single point in time where iwd is 'ready'. It depends on the hardware being
detected, initialized, etc. So each interface / object would be signaled
independently anyway. I would suggest that your application should be listening
to D-Bus signals and figuring out what interfaces are becoming available (via
InterfacesAdded signal, etc).
Regards,
-Denis
prev parent reply other threads:[~2020-12-10 20:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-10 20:13 systemd startup notification for iwd? Bruce Johnson
2020-12-10 20:27 ` Denis Kenzior [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5253e0bd-31f9-92cc-c566-ecc28fc7aebb@gmail.com \
--to=denkenz@gmail.com \
--cc=iwd@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox