Re: [systemd-devel] Monitoring services start event from kdbus with sd-bus API

2015-06-30 Thread Mantas Mikulėnas
First, are you actually switching your bus connection to monitor mode? In kdbus (and probably even in future DBus) there is a distinct monitor mode which must be enabled to capture other peers' bus traffic. Adding a match is not enough for that. Second, your approach won't work anyway. There

Re: [systemd-devel] Monitoring services start event from kdbus with sd-bus API

2015-06-30 Thread Simon McVittie
On 30/06/15 10:15, Thomas Schmidt wrote: r = sd_bus_add_match(bus, NULL, , do_something_callback, NULL); /* should not filter anything, I expect it triggers on any message */ Eavesdropping (adding match rules with AddMatch to receive messages that are neither a broadcast, nor directed to

Re: [systemd-devel] howto handle one time shutdown programs

2015-06-30 Thread Andrei Borzenkov
On Tue, Jun 30, 2015 at 2:35 PM, Andreas Buschmann busch...@tech.net.de wrote: Hello Johannes, On Thu 25-Jun-2015 20:09 CEST Johannes Ernst writes: On Jun 25, 2015, at 7:57, Andreas Buschmann busch...@tech.net.de wrote: I am writing a systemd .service file to handle NVDIMMs. - start -

[systemd-devel] Delaying device service creation

2015-06-30 Thread Francis Moreau
Hi, I have a service 'A' which creates a device 'X' and does some configuring of the device. The device is created in a 'ExecStart=' directive whereas its configuration happens during 'ExecStartPost='. But it seems that as soon as the device is seen by systemd, it creates the corresponding

Re: [systemd-devel] getent hosts machine

2015-06-30 Thread Colin Guthrie
Colin Guthrie wrote on 30/06/15 11:58: Johannes Ernst wrote on 29/06/15 19:51: On Jun 29, 2015, at 10:32, Johannes Ernst johannes.er...@gmail.com mailto:johannes.er...@gmail.com wrote: I was hoping that getent hosts containername would work, just like getent hosts hostname where hostname

Re: [systemd-devel] Delaying device service creation

2015-06-30 Thread Mantas Mikulėnas
Options: - Configure it as part of ExecStart if possible. - Configure it using a second .service unit (oneshot), and depend on that one. - Do something with udev to mark unconfigured devices with SYSTEMD_READY=0? Not sure how. But if you can do this, it'll directly affect the readiness of the

Re: [systemd-devel] Question about ExecStartPost= and startup process

2015-06-30 Thread Francis Moreau
On 06/29/2015 10:05 AM, Andrei Borzenkov wrote: [...] service_sigchld_event() { ... } else if (s-control_pid == pid) { ... if (s-control_command s-control_command-command_next f ==

[systemd-devel] Monitoring services start event from kdbus with sd-bus API

2015-06-30 Thread Thomas Schmidt
Hello, for an embedded project I’m implementing a bootsplash application which should as well display service names are starting. This is based on kdbus and uses the sd-bus API to communicate with systemd (for example boot process percentage property is polled). Now I try to monitor the kdbus

Re: [systemd-devel] howto handle one time shutdown programs

2015-06-30 Thread Andreas Buschmann
Hello Johannes, On Thu 25-Jun-2015 20:09 CEST Johannes Ernst writes: On Jun 25, 2015, at 7:57, Andreas Buschmann busch...@tech.net.de wrote: I am writing a systemd .service file to handle NVDIMMs. - start - stop - reload all work The problem child is restart. Restart is internally