Re: [systemd-devel] DBus api of systemd user instance

2015-03-06 Thread Mantas Mikulėnas
On Fri, Mar 6, 2015 at 6:23 PM, Ragnar Thomsen wrote: > Hey List, > > Does the user instance of systemd expose a dbus api? > Yes, that's what `systemctl` uses. > If yes, how does one access it? > Much like the system instance – either over the DBus "user" bus, or over the dedicated private so

[systemd-devel] sd_journal_add_match if not using the form of "FIELD=value"

2015-03-06 Thread Chris Morgan
http://www.freedesktop.org/software/systemd/man/sd_journal_add_match.html is pretty clear that the matches are in the form of 'FIELD=value' but it doesn't mention the why. What if I've written a field like "FIELD", can I then match on it as "FIELD"? I presume that sd_journal_add_match is doing an

Re: [systemd-devel] [PATCH] adjust for time spent in timedated even without dbus timestamp

2015-03-06 Thread Dave Reisner
On Fri, Mar 06, 2015 at 05:22:22PM -0800, Shawn Landden wrote: > it is trivial to fall back to our own timestamp > > v2: use now() > --- > src/timedate/timedated.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c > i

[systemd-devel] [PATCH] adjust for time spent in timedated even without dbus timestamp

2015-03-06 Thread Shawn Landden
it is trivial to fall back to our own timestamp v2: use now() --- src/timedate/timedated.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index 88d57e9..75b1f1b 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/ti

[systemd-devel] [PATCH] adjust for time spent in timedated even without dbus timestamp

2015-03-06 Thread Shawn Landden
it is trivial to fall back to our own timestamp --- src/timedate/timedated.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index 88d57e9..7e47348 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @

Re: [systemd-devel] order of sd_journal_query_unique()?

2015-03-06 Thread Chris Morgan
On Fri, Mar 6, 2015 at 6:45 PM, Daurnimator wrote: > On 6 March 2015 at 16:13, Chris Morgan wrote: >> So is SD_JOURNAL_FOREACH_BACKWARDS the fastest way to find the newest >> journal entry with a given field? journalctl seems a ton faster than >> my c application is when I search for a given fiel

Re: [systemd-devel] [PATCH] po: update French translation

2015-03-06 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Mar 07, 2015 at 12:56:46AM +0100, Sylvain Plantefève wrote: > --- > po/fr.po | 14 -- > 1 file changed, 12 insertions(+), 2 deletions(-) Applied. Zbyszek ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists

[systemd-devel] [PATCH] po: update French translation

2015-03-06 Thread Sylvain Plantefève
--- po/fr.po | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/po/fr.po b/po/fr.po index 1cd4b55..b3b17ce 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: systemd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 201

Re: [systemd-devel] order of sd_journal_query_unique()?

2015-03-06 Thread Daurnimator
On 6 March 2015 at 16:13, Chris Morgan wrote: > So is SD_JOURNAL_FOREACH_BACKWARDS the fastest way to find the newest > journal entry with a given field? journalctl seems a ton faster than > my c application is when I search for a given field that is not > present. And by search I'm doing: > > jou

Re: [systemd-devel] Notification socket and chroot vs PrivateNetwork conflict (abstract vs file-system)

2015-03-06 Thread Alban Crequy
On 9 December 2014 at 17:28, Lennart Poettering wrote: > On Tue, 09.12.14 16:24, Krzysztof Kotlenga (k.kotle...@sims.pl) wrote: > >> Hi. >> >> Currently notify socket is unavailable in chrooted services (again) >> unless you bind mount it there. Is there perhaps another, less >> cumbersome way? >>

Re: [systemd-devel] order of sd_journal_query_unique()?

2015-03-06 Thread Chris Morgan
On Fri, Mar 6, 2015 at 2:38 PM, Daurnimator wrote: > On 6 March 2015 at 14:25, Chris Morgan wrote: >> I was using a journal iterator to search from the newest journal entry >> backwards for a matching field, using SD_JOURNAL_FOREACH_BACKWARDS. >> This appears to be pretty slow but journalctl is r

Re: [systemd-devel] [PATCH] core/socket: Add REMOTE_IP environment variable for Accept=true

2015-03-06 Thread Shawn Landden
On Thu, Mar 5, 2015 at 3:18 AM, Lennart Poettering wrote: > On Wed, 04.03.15 15:18, Shawn Landden (sh...@churchofgit.com) wrote: > > Can't this just use getpeername_pretty()? > > Then I can't force it to only ipv4 and ipv6. > Lennart > > -- > Lennart Poettering, Red Hat > ___

[systemd-devel] Reliably waiting for udevd to finish processing triggered events

2015-03-06 Thread Daniel Drake
Hi, I'm looking at some issues with the plymouth boot splash system, and why it intermittently fails to get graphics on screen. plymouth watches for the creation of drm display devices during boot. If it finds one, it starts a graphical splash and that is that. However, if the system finishes loa

Re: [systemd-devel] order of sd_journal_query_unique()?

2015-03-06 Thread Daurnimator
On 6 March 2015 at 14:25, Chris Morgan wrote: > I was using a journal iterator to search from the newest journal entry > backwards for a matching field, using SD_JOURNAL_FOREACH_BACKWARDS. > This appears to be pretty slow but journalctl is really fast. I went > looking and found sd_journal_query_u

[systemd-devel] order of sd_journal_query_unique()?

2015-03-06 Thread Chris Morgan
I was using a journal iterator to search from the newest journal entry backwards for a matching field, using SD_JOURNAL_FOREACH_BACKWARDS. This appears to be pretty slow but journalctl is really fast. I went looking and found sd_journal_query_unique() (although I'm not 100% positive this is why jou

Re: [systemd-devel] [RFC][PATCH] Add option to enable COW for journal file

2015-03-06 Thread Goffredo Baroncelli
On 2015-03-06 13:31, Lennart Poettering wrote: > On Thu, 05.03.15 21:39, Goffredo Baroncelli (kreij...@libero.it) wrote: > >> >> Hi All, >> the enclosed patches add an option to the journald.conf file to allow >> a COW behavior for the journal files. >> [...] > > I am pretty strongly against addi

Re: [systemd-devel] [PATCH] systemd: Have rpc-statd-notify.service Require network.target

2015-03-06 Thread Steve Dickson
On 03/03/2015 05:51 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Tue, Mar 03, 2015 at 04:37:24PM -0500, Steve Dickson wrote: >> >> >> On 03/03/2015 02:18 PM, Zbigniew Jędrzejewski-Szmek wrote: >>> On Tue, Mar 03, 2015 at 10:06:57PM +0300, Andrei Borzenkov wrote: >>> Indeed. From the man page: >>>

Re: [systemd-devel] [PATCH 0/1] details for starting nfs-idmapd also on clients

2015-03-06 Thread Steve Dickson
Hello, On 03/06/2015 06:15 AM, Martin Pitt wrote: > Hello all, > > Steve Langasek pointed out in [1] that idmapd is also necessary on the client > side. It isn't for my very simple NFSv4 test, but then again I don't know that > much about the various other modes of operation. > > This patch star

[systemd-devel] DBus api of systemd user instance

2015-03-06 Thread Ragnar Thomsen
Hey List, Does the user instance of systemd expose a dbus api? If yes, how does one access it? Sincerely, Ragnar Thomsen rthoms...@gmail.com ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo

Re: [systemd-devel] Possible bug when a dummy service declares After= and/or Conflicts= a .mount unit?

2015-03-06 Thread Didier Roche
Le 06/03/2015 16:17, Michael Biebl a écrit : 2015-03-06 11:20 GMT+01:00 Didier Roche : It seems like tmp.mount unit was skipped as nothing declared any explicit dependency against it. What seems to confirm this is that if I add any enabled foo.service which declares After=tmp.mount, or if I add

Re: [systemd-devel] Possible bug when a dummy service declares After= and/or Conflicts= a .mount unit?

2015-03-06 Thread Michael Biebl
2015-03-06 11:20 GMT+01:00 Didier Roche : > It seems like tmp.mount unit was skipped as nothing declared any explicit > dependency against it. What seems to confirm this is that if I add any > enabled foo.service which declares After=tmp.mount, or if I add the After= > statement to systemd-timesync

Re: [systemd-devel] [PATCH 1/2] vconsole: match on vtcon events, not fbcon ones

2015-03-06 Thread David Herrmann
Hi On Tue, Feb 24, 2015 at 5:49 PM, Jan Engelhardt wrote: > I observe that upon loading of framebuffer drivers, I do not get the > desired system font, but the kernel-level defaults (usually > lib/fonts/font_8x16.c, but your mileage may vary depending on kernel > config and boot options). > > The

Re: [systemd-devel] [PATCH] doc: replace 'reply_cookie' with 'cookie_reply'

2015-03-06 Thread David Herrmann
Hi On Fri, Mar 6, 2015 at 2:48 PM, Lukasz Skalski wrote: > Signed-off-by: Lukasz Skalski Applied! Thanks David > diff --git a/doc/kdbus.message.xml b/doc/kdbus.message.xml > index c25000d..5e7c7a3 100644 > --- a/doc/kdbus.message.xml > +++ b/doc/kdbus.message.xml > @@ -393,7 +393,7 @@ struct

[systemd-devel] [PATCH] doc: replace 'reply_cookie' with 'cookie_reply'

2015-03-06 Thread Lukasz Skalski
Signed-off-by: Lukasz Skalski diff --git a/doc/kdbus.message.xml b/doc/kdbus.message.xml index c25000d..5e7c7a3 100644 --- a/doc/kdbus.message.xml +++ b/doc/kdbus.message.xml @@ -393,7 +393,7 @@ struct kdbus_msg { For a message to be accepted as reply, it must be a direct

Re: [systemd-devel] logind: lid switch action not executed on small open/close delays

2015-03-06 Thread David Herrmann
Hi On Wed, Jan 28, 2015 at 8:31 PM, Lennart Poettering wrote: > On Sat, 17.01.15 18:36, David Herrmann (dh.herrm...@gmail.com) wrote: > >> I think it's reasonable to allow setting the base-timeout in >> /etc/systemd/logind.conf, but I want to know Lennart's opinion first. >> Preferably, this time

Re: [systemd-devel] [PATCH] doc: replace 'reply_cookie' with 'cookie_reply'

2015-03-06 Thread David Herrmann
Hi On Fri, Mar 6, 2015 at 2:28 PM, Lukasz Skalski wrote: > diff --git a/doc/kdbus.message.xml b/doc/kdbus.message.xml > index c25000d..5e7c7a3 100644 > --- a/doc/kdbus.message.xml > +++ b/doc/kdbus.message.xml > @@ -393,7 +393,7 @@ struct kdbus_msg { >For a message to be accep

[systemd-devel] [PATCH] doc: replace 'reply_cookie' with 'cookie_reply'

2015-03-06 Thread Lukasz Skalski
diff --git a/doc/kdbus.message.xml b/doc/kdbus.message.xml index c25000d..5e7c7a3 100644 --- a/doc/kdbus.message.xml +++ b/doc/kdbus.message.xml @@ -393,7 +393,7 @@ struct kdbus_msg { For a message to be accepted as reply, it must be a direct message to the ori

Re: [systemd-devel] [RFC][PATCH] Add option to enable COW for journal file

2015-03-06 Thread Lennart Poettering
On Thu, 05.03.15 21:39, Goffredo Baroncelli (kreij...@libero.it) wrote: > > Hi All, > the enclosed patches add an option to the journald.conf file to allow > a COW behavior for the journal files. > > The commit 11689d2a force the NOCOW flag of the journal files. This was > needed because system

Re: [systemd-devel] SELinux labels on unix sockets

2015-03-06 Thread Lennart Poettering
On Fri, 06.03.15 13:04, Jan Synáček (jsyna...@redhat.com) wrote: > Hello, > > when systemd creates a socket file, it explicitly calls a selinux > procedure to label it. I don't think that is needed, as the kernel does > the right thing when the socket is created. Am I missing something? Why > is

[systemd-devel] SELinux labels on unix sockets

2015-03-06 Thread Jan Synáček
Hello, when systemd creates a socket file, it explicitly calls a selinux procedure to label it. I don't think that is needed, as the kernel does the right thing when the socket is created. Am I missing something? Why is the explicit labeling in place? Cheers, -- Jan Synacek Software Engineer, Re

[systemd-devel] [PATCH] systemd: start nfs-idmapd also on clients

2015-03-06 Thread Martin Pitt
idmapd is needed on clients too, so start it from nfs-client.target and stop binding to it in nfs-server.service. https://launchpad.net/bugs/1428961 --- systemd/nfs-client.target | 4 ++-- systemd/nfs-idmapd.service | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/systemd/n

[systemd-devel] [PATCH 0/1] details for starting nfs-idmapd also on clients

2015-03-06 Thread Martin Pitt
Hello all, Steve Langasek pointed out in [1] that idmapd is also necessary on the client side. It isn't for my very simple NFSv4 test, but then again I don't know that much about the various other modes of operation. This patch starts nfs-idmapd.service on clients too. Thanks, Martin [1] https

[systemd-devel] "systemd --test" fails

2015-03-06 Thread Frank Steiner
Hi, for debugging an ordering cycle during boot I tried to run systemd --test --system --unit=multi-user.target --log-level=debug as user (as it doesn't work as root). The result is just: systemd 210 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX -IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT

Re: [systemd-devel] Possible bug when a dummy service declares After= and/or Conflicts= a .mount unit?

2015-03-06 Thread Didier Roche
Le 04/03/2015 13:40, Lennart Poettering a écrit : On Wed, 04.03.15 13:19, Didier Roche (didro...@ubuntu.com) wrote: Before=systemd-timesyncd.service foo.service local-fs.target umount.target systemd-timesyncd.service though is condition failed: Condition: start condition failed at Wed 2015-03-

Re: [systemd-devel] [PATCH] use dolt.m4 to speedup compilation

2015-03-06 Thread Harald Hoyer
On 06.03.2015 01:58, j...@joshtriplett.org wrote: > On Fri, Mar 06, 2015 at 12:55:38AM +0100, Michael Biebl wrote: >> 2015-03-05 11:58 GMT+01:00 : >>> From: Harald Hoyer >>> >>> The speedup is significant >>> >>> Original libtool >>> $ ccache -C && make clean && time make -j4 >>> […] >>> real

Re: [systemd-devel] is there a plan for NIC teaming support ?

2015-03-06 Thread Vasiliy Tolstov
2015-03-06 7:09 GMT+03:00 Andrei Borzenkov : > Linux bonding driver supports LACP (mode 4) As i understand user can't use LACP because it switches does not support it. -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru jabber: v...@selfip.ru ___ systemd-