Re: [systemd-devel] Delaying device service creation

2015-06-30 Thread Francis Moreau
On 06/30/2015 07:47 PM, Mantas Mikulėnas wrote: > Options: > > - Configure it as part of ExecStart if possible. I don't see how is this going to help, sorry. > > - Configure it using a second .service unit (oneshot), and depend on > that one. You meant all services that were depending on the d

[systemd-devel] Fwd: With my layer, Systemd not invoking my application at startup

2015-06-30 Thread Vipin Nair
Hi All, I am using the yacto style project and I have created a layer (my first layer) and have build it with WindRiver media which uses Systemd for the startup services. As per my application need, I have to create a new user on the final image and change the owner permissions of certain files

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] getent hosts

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 >> > wrote: >>> >>> I was hoping that >>> getent hosts >>> would work, just like >>> getent hosts >>> where can be anything else in the

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

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 wrote: > Hello Johannes, > > On Thu 25-Jun-2015 20:09 CEST Johannes Ernst writes: > >>> On Jun 25, 2015, at 7:57, Andreas Buschmann wrote: >>> >>> I am writing a systemd .service file to handle NVDIMMs. >>> >>> - start >>> - stop >>> - reload >>>

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 wrote: >> >> I am writing a systemd .service file to handle NVDIMMs. >> >> - start >> - stop >> - reload >> all work >> >> The problem child is "restart". >> Restart is internal

Re: [systemd-devel] getent hosts

2015-06-30 Thread Colin Guthrie
Johannes Ernst wrote on 29/06/15 19:51: >> On Jun 29, 2015, at 10:32, Johannes Ernst > > wrote: >> >> I was hoping that >> getent hosts >> would work, just like >> getent hosts >> where can be anything else in the hosts: field in >> nsswitch.conf. But no such luc

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 t

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 *won'

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