Wireless Daemon for Linux
 help / color / mirror / Atom feed
* systemd startup notification for iwd?
@ 2020-12-10 20:13 Bruce Johnson
  2020-12-10 20:27 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Bruce Johnson @ 2020-12-10 20:13 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: systemd startup notification for iwd?
  2020-12-10 20:13 systemd startup notification for iwd? Bruce Johnson
@ 2020-12-10 20:27 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2020-12-10 20:27 UTC (permalink / raw)
  To: iwd

[-- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-10 20:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-10 20:13 systemd startup notification for iwd? Bruce Johnson
2020-12-10 20:27 ` Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox