Re: [systemd-devel] Fwd: make pystemd part of systemd repo.

2022-08-17 Thread Zbigniew Jędrzejewski-Szmek
[I misplaced the original mail, so I'm replying to a forward. Apologies if threading is broken.] > What do we propose to do? > - > > We want to bring pystemd[1] into the systemd organization, and merge > (functionality wise) with python-systemd[2], so that there is a single > Python library,

Re: [systemd-devel] org.freedesktop.timedate1.NTPSynchronized not signaled: rationale?

2022-08-17 Thread Etienne Doms
Ok, that makes a lot of sense, I was confusing timedated and timesyncd, and indeed the latter is what would be able to broadcast the event, even if it does not yet. I wasn't aware of /run/systemd/timesync/synchronized, looks fine to me, will investigate that. Thanks! Le mer. 17 août 2022 à 15:17

Re: [systemd-devel] org.freedesktop.timedate1.NTPSynchronized not signaled: rationale?

2022-08-17 Thread Mantas Mikulėnas
On Wed, Aug 17, 2022 at 1:59 PM Etienne Doms wrote: > Hi, > > I'm developing an application for an embedded system that needs to > wait for proper NTP synchronization. systemd-timesyncd is running and > I can read NTPSynchronized from /org/freedesktop/timedate1 using > D-Bus. I read in the manual

Re: [systemd-devel] [EXT] org.freedesktop.timedate1.NTPSynchronized not signaled: rationale?

2022-08-17 Thread Etienne Doms
Oh, should have added a bit more context, indeed. The piece of software is bringing a specific interface up, checking that something is connected (link going up or not), then issues a DHCP request onto it to fetch an IP and NTP servers, and then waits for proper NTP synchronization to keep on. If

[systemd-devel] Antw: [EXT] org.freedesktop.timedate1.NTPSynchronized not signaled: rationale?

2022-08-17 Thread Ulrich Windl
>>> Etienne Doms schrieb am 17.08.2022 um 12:58 in Nachricht : > Hi, > > I'm developing an application for an embedded system that needs to > wait for proper NTP synchronization. systemd-timesyncd is running and What's wrong with time-sync.target? Or maybe even time-set.target? > I can read NTP

[systemd-devel] org.freedesktop.timedate1.NTPSynchronized not signaled: rationale?

2022-08-17 Thread Etienne Doms
Hi, I'm developing an application for an embedded system that needs to wait for proper NTP synchronization. systemd-timesyncd is running and I can read NTPSynchronized from /org/freedesktop/timedate1 using D-Bus. I read in the manual that this property is not signaled, and that I need to do some w

Re: [systemd-devel] Detecting when running under systemd

2022-08-17 Thread Peter Hoeg
you want to check specifically whether stderr is tied to the journal, for which you can use JOURNAL_STREAM You are right, nice catch! (In addition to disabling the timestamps you should *at least* add message priority indicators as well, either by using SyslogLevelPrefix=, or by avoiding