Re: [systemd-devel] How to add filter for ActiveState property and get to know for which object this property is?

2018-01-16 Thread Tomasz Michalski
And I have other question. Generally we wonder what will be better design for monitoring systemd services 1.) - add-match to ActiveState - subscribe to systemd1.Manager - then we have to start in separate thread some infinitive-loop with sd_bus_wait() and sd_bus_process() (*) 2.) - asking for examp

[systemd-devel] How to add filter for ActiveState property and get to know for which object this property is?

2018-01-16 Thread Tomasz Michalski
Hi I am in the middle of implementation monitor for getting states from services. I have some question to my current implementation. My current implementation is: void main() { . r = sd_bus_add_match(&bus, NULL, "type='signal',"

Re: [systemd-devel] how to know what exactly parameter set in busCtl methods?

2018-01-16 Thread Mantas Mikulėnas
On Tue, Jan 16, 2018 at 1:52 PM, Tomasz Michalski wrote: > Hi > I have a problem with call methods from terminal which take an argument, > for example when I try to use this one: > busctl call org.freedesktop.systemd1 > /org/freedesktop/systemd1/unit/syscom_2epath > org.freedesktop.systemd1.Unit

Re: [systemd-devel] Required kernel version for pid1 only?

2018-01-16 Thread Cristian Rodríguez
El 09-01-2018 a las 5:35, 林自均 escribió: Hi Zbyszek and Mantas, I got it. Thank you for the detailed answers. John Lin Note that unless you have a kernel supported by a reliable distributor you should not use anything older than what kernel.org tells you to. You probably want instead to f

[systemd-devel] how to know what exactly parameter set in busCtl methods?

2018-01-16 Thread Tomasz Michalski
Hi I have a problem with call methods from terminal which take an argument, for example when I try to use this one: busctl call org.freedesktop.systemd1 /org/freedesktop/systemd1/unit/syscom_2epath org.freedesktop.systemd1.Unit Kill I get output Invalid arguments '' to call org.freedesktop.systemd1

Re: [systemd-devel] How to handle untagged hexvalues in systemd code?

2018-01-16 Thread Lennart Poettering
On Mo, 15.01.18 18:44, Olaf Hering (o...@aepfle.de) wrote: > I submitted a correct and tested patch via > https://github.com/systemd/systemd/pull/7581, which was using > sscanf("0028f0", "%x",&val). During discussion I was soft-forced to > use systemd helper functions. These (strtoull based) helpe

Re: [systemd-devel] How to handle untagged hexvalues in systemd code?

2018-01-16 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Jan 15, 2018 at 06:44:41PM +0100, Olaf Hering wrote: > I submitted a correct and tested patch via > https://github.com/systemd/systemd/pull/7581, which was using > sscanf("0028f0", "%x",&val). During discussion I was soft-forced to use > systemd helper functions. These (strtoull based) h