Re: [systemd-devel] Waiting on a bus name to appear in systemd service

2018-06-30 Thread Federico Di Pierro
our service continue. > > On June 29, 2018 4:44:27 PM Federico Di Pierro wrote: > >> Hi everyone! >> >> I was wondering whether there was a way for a systemd service to wait for >> a bus name to appear before starting a service. >> Something like: >> >&

[systemd-devel] Waiting on a bus name to appear in systemd service

2018-06-29 Thread Federico Di Pierro
Hi everyone! I was wondering whether there was a way for a systemd service to wait for a bus name to appear before starting a service. Something like: Requires=org.freedesktop.PolicyKit1 I could not find much googling around. Is this possible? Thanks everyone! Federico __

Re: [systemd-devel] Opposite of sd_bus_add_match

2017-05-16 Thread Federico Di Pierro
2017-05-13 10:57 GMT+02:00 Federico Di Pierro : > Hi, > > i cannot find in doc neither in source a sd_bus_remove_match function. > How can i properly stop listening on a match? I cannot find any > information with google; i only see it seems it existed time ago (around > syste

[systemd-devel] Opposite of sd_bus_add_match

2017-05-13 Thread Federico Di Pierro
Hi, i cannot find in doc neither in source a sd_bus_remove_match function. How can i properly stop listening on a match? I cannot find any information with google; i only see it seems it existed time ago (around systemd 210). Thank you very much for your great work! Have a nice day, Federico

Re: [systemd-devel] sd_bus_add_match after sd_bus_get_fd

2017-04-30 Thread Federico Di Pierro
Thanks, that was the information i was looking for. Indeed i was able to solve the issue! Again, thank you very much, Federico 2017-04-30 12:55 GMT+02:00 Lennart Poettering : > On Sat, 29.04.17 20:31, Federico Di Pierro (nierr...@gmail.com) wrote: > > > Hi! > > I'm stru

[systemd-devel] sd_bus_add_match after sd_bus_get_fd

2017-04-29 Thread Federico Di Pierro
Hi! I'm struggling to understand if this can be done: suppose i start polling on sd_bus_get_fd() without any match; then, after some event happens, i add a match on same bus. Will i receive events on my fd just going on polling? Ie: will this work? fd = sd_bus_get_fd(); event_happened = 0; poll(fd)

[systemd-devel] How to unlock a blocking sd_bus_wait() call

2016-01-07 Thread Federico Di Pierro
Hi! I'm trying to understand if there's a way to properly unlock a sd_bus_wait() blocking call, as i need the thread where the call is performed to leave. The cycle is something like: while (!quit) { r = sd_bus_process(signal_bus, NULL); if (r > 0) { continue;

[systemd-devel] Hybrid-sleep needs to be executed bu superuser

2012-12-17 Thread Federico Di Pierro
Hi! I'm using systemd 196 on my archlinux, with linux 3.7.0 . I found out that "systemctl hybrid-sleep" needs to be ran as root. While my session is active (using systemd-logind feature), and in fact i can hibernate/poweroff/suspend with my normal user. But hybrid-sleep still requires superuser pri

[systemd-devel] systemd hibernation process

2012-10-16 Thread Federico Di Pierro
Hi! I was trying to understand how does systemd hibernation process work. What i mean is: with pm-utils i had to put "tuxonice" in a /etc/pm/config.d/ file, within the SLEEP_MODULE array, to make pm work with it. Systemd instead seems to do this without any input from the user...that's great, but h

[systemd-devel] Linux 3.6 hybrid-sleep

2012-10-15 Thread Federico Di Pierro
Hi! I'm using systemd 194 in archlinux. I read that linux 3.6 comes with hybrid-sleep, finally. I only rely on systemd to suspend/hibernate (well i use it together with tuxonice to hibernate, but i don't think this can be a problem). So I was wondering: will i be able to hybrid-sleep with systemd o

[systemd-devel] systemd powersaving feature

2012-08-08 Thread Federico Di Pierro
Hi! I'm usign systemd on arch, and i'm really happy with it. Today upower 0.9.18 has been released, with systemd support (it will suspend/hibernate using systemctl suspend/hibernate instead of pm-utils). I was only wondering: the only thing systemd can't do, right now, is the pm-powersave part of p