[systemd-devel] Why does nspawn need two child processes?

2017-05-31 Thread Luke Shumaker
Hi all, I have a question about `systemd-nspawn` internals. When creating the child process, it does something like: parent | clone(MOUNT) | `, | outer_child() | | | clone(rest) |

Re: [systemd-devel] time-sync.target

2017-05-31 Thread Luke Shumaker
On Wed, 31 May 2017 04:33:09 -0400, Pietro Paolini wrote: > Thanks! Unfortunately it is not an option to install the Go runtime > system on the board I am working with, is there a place where I can > find docs about writing my own wrapper in C ? Go is a compiled language, there is no separate runt

Re: [systemd-devel] socket unit refusing connection when JOB_STOP is pending

2017-05-31 Thread Moravec, Stanislav (ERT)
FYI: I tried to simply bypass the pending job check: +int ignore_stop_pending = true; static void socket_enter_running(Socket *s, int cfd) { ... -if (unit_stop_pending(UNIT(s))) { +if (!ignore_stop_pending && unit_stop_pending(UNIT(s))) { But, as expected, it's not as that easy - t

Re: [systemd-devel] spurious suspend wakeup

2017-05-31 Thread Lennart Poettering
On Wed, 31.05.17 11:21, Michał Zegan (webczat_...@poczta.onet.pl) wrote: > Hello. > > My laptop does spuriously wake up from suspend. > Can systemd be involved in this? I do not know any timer set to use a > wake alarm, but I may be wrong. I usually suspend by closing a lid, and > logind re

[systemd-devel] [RFC PATCH v4 2/5] ACPI: button: Extends complement switch event support for all modes

2017-05-31 Thread Lv Zheng
Surface Pro 3 is a typical platform where suspend/resume loop problem can be seen. The problem is due to a systemd 229 bug: 1. "ignore": always can trigger endless suspend/resume loop 2. "open": sometimes suspend/resume loop can be stopped 3. "method": always can trigger endless susped/resume loop

[systemd-devel] [RFC PATCH v4 1/5] ACPI: button: Add indication of BIOS notification and faked events

2017-05-31 Thread Lv Zheng
This patch adds a parameter to acpi_lid_notify_state() so that it can act differently against BIOS notification and kernel faked events. Cc: Cc: Benjamin Tissoires Cc: Peter Hutterer Signed-off-by: Lv Zheng --- drivers/acpi/button.c | 14 -- 1 file changed, 8 insertions(+), 6 dele

[systemd-devel] spurious suspend wakeup

2017-05-31 Thread Michał Zegan
Hello. My laptop does spuriously wake up from suspend. Can systemd be involved in this? I do not know any timer set to use a wake alarm, but I may be wrong. I usually suspend by closing a lid, and logind reports lid opened after wake up, but I do not know if it is just because lid was clos

Re: [systemd-devel] [RFC PATCH v3 1/5] ACPI: button: Add indication of BIOS notification and faked events

2017-05-31 Thread Zheng, Lv
Hi, > From: linux-acpi-ow...@vger.kernel.org > [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Benjamin > Tissoires > Subject: Re: [RFC PATCH v3 1/5] ACPI: button: Add indication of BIOS > notification and faked events > > Hi Lv, > > On May 27 2017 or thereabouts, Lv Zheng wrote: > > Th

Re: [systemd-devel] time-sync.target

2017-05-31 Thread Pietro Paolini
On 31 May 2017 at 02:36, Luke Shumaker wrote: > On Tue, 30 May 2017 11:57:00 -0400, > Pietro Paolini wrote: > > Hi everybody, > > > > I am trying to configure my systemd to run my service *after* the > > timesyncd service is synchronized with the NTP server, unfortunately > > adding the "After=ti

Re: [systemd-devel] socket unit refusing connection when JOB_STOP is pending

2017-05-31 Thread Michal Sekletar
On Mon, May 29, 2017 at 5:44 PM, Lennart Poettering wrote: > This is indeed a shortcoming in systemd's model right now: we don't > permit a start and a stop job to be enqueued for the same unit at the > same time. But to do what you want to do we'd need to permit that: the > service is supposed t