Re: [systemd-devel] [PATCH 2/3] nspawn: use Barrier API instead of eventfd-util

2014-07-17 Thread David Herrmann
Hi On Mon, Jul 14, 2014 at 3:28 AM, Djalal Harouni wrote: > ppoll is atomic and it is handled by the kernel, so perhaps > setting/restoring sigmask can be done easily! and for nspawn: IMO we need > to receive SIGCHLD which implies EINTR. > > I say EINTR since not only for blocking read or infinit

[systemd-devel] Unit to test if a domain is reachable

2014-07-17 Thread Moviuro
Hi all! Since (from my understanding) systemd devel team did not want to interpret nor force its interpretation of "network availability" on systemd consumers, we have to use some other services and cross fingers (network.target, systemd- networkd-wait-online.service and so on). However, everyt

Re: [systemd-devel] Unit to test if a domain is reachable

2014-07-17 Thread Peter Sztanojev
On Thu, Jul 17, 2014 at 11:37 AM, Moviuro wrote: > Hi all! > > Since (from my understanding) systemd devel team did not want to interpret nor > force its interpretation of "network availability" on systemd consumers, we > have to use some other services and cross fingers (network.target, systemd-

Re: [systemd-devel] Unit to test if a domain is reachable

2014-07-17 Thread Moviuro
On Thursday 17 July 2014 12:12:22 you wrote: > Why not just use network-online.target? > http://www.freedesktop.org/software/systemd/man/systemd.special.html#network > -online.target o If it succeeds, the unit that needs to reach %i gets launched and my reachable-retry@ *does not* enter SUCCESS or

Re: [systemd-devel] Socket activated SSHD service showing up as a failure when the client connection fReply-To:

2014-07-17 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jul 17, 2014 at 01:37:12PM +1000, Roger Qiu wrote: > You mean something like this: > > ``` > $ cat /nix/store/wr8r8jrj204q3i0v4vfav8m63ssnv8w1-unit/sshd@.service > [Unit] > Description=SSH Daemon > > [Service] > Environment="LD_LIBRARY_PATH=/nix/store/sk3017fxx2vhj69saizk5634y3w6hqhn-sys

Re: [systemd-devel] systemd-socket-proxyd & slapd

2014-07-17 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jul 17, 2014 at 09:43:48AM +0300, Suvendu Mitra wrote: > I have changed proxy-to-directory-400.service as > > # cat proxy-to-directory-400.service > [Unit] > Requires=vgp.master-ldap-400.service > After=vgp.master-ldap-400.service > JoinsNamespaceOf=vgp.master-ldap-400

[systemd-devel] Warnings from recent commits

2014-07-17 Thread Thomas H.P. Andersen
>From recent commits I have noticed the following new issues from static analysis with scan-build and with clang. I am not sure how they should be fixed (or even if) but I just though I would let you know. 1) src/shared/barrier.c in barrier_read starting at line 274 if (pfd[1].revents) {

Re: [systemd-devel] [PATCH 2/3] nspawn: use Barrier API instead of eventfd-util

2014-07-17 Thread Djalal Harouni
On Thu, Jul 17, 2014 at 11:30:26AM +0200, David Herrmann wrote: > Hi > > On Mon, Jul 14, 2014 at 3:28 AM, Djalal Harouni wrote: > > ppoll is atomic and it is handled by the kernel, so perhaps > > setting/restoring sigmask can be done easily! and for nspawn: IMO we need > > to receive SIGCHLD whic

[systemd-devel] Forcing default route as the one provided by one interface

2014-07-17 Thread Mauricio Tavares
Newbie question: if I have two interfaces (in separate networks) with each of them using DHCP, how can I specify that I want the default route to be the one being obtained by, say, interface A? I read through http://www.freedesktop.org/software/systemd/man/systemd.network.html and did not se

Re: [systemd-devel] systemd-socket-proxyd & slapd

2014-07-17 Thread David Timothy Strauss
On Thu, Jul 17, 2014 at 4:51 AM, Zbigniew Jędrzejewski-Szmek wrote: > I'd try without Private* settings. > > Also, replace /usr/lib/systemd/systemd-socket-proxyd with > '/bin/strace -o /tmp/log /usr/lib/systemd/systemd-socket-proxyd' > and look at the log file. Yes, get it working without Private

[systemd-devel] sd-resolve reference counting

2014-07-17 Thread Zbigniew Jędrzejewski-Szmek
Hi, running systemd-timesyncd from current git under valgrind yields: ==16536== Thread 2 sd-resolve: ==16536== Syscall param sendmsg(msg.msg_iov[0]) points to uninitialised byte(s) ==16536==at 0x5765FAD: ??? (syscall-template.S:81) ==16536==by 0x112A36: thread_worker.3172 (sd-resolve.c:308

[systemd-devel] [PATCH] install: systemd-timesyncd.service is enabled by sysinit.target

2014-07-17 Thread Michael Olbrich
systemd-timesyncd.service has a "WantedBy=sysinit.target" so the initially generated link should match that. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index db846ad..d1e3b0b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4507,7 +4