[systemd-devel] [PATCH] journal-remote: do not install tmpfiles and sysusers files by default

2014-11-26 Thread Łukasz Stelmach
Change-Id: I5cbbcec134f52267ac4841b7d8f14d341a2d2184 Signed-off-by: Łukasz Stelmach l.stelm...@samsung.com --- Makefile.am | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 1674f61..cf21563 100644 --- a/Makefile.am +++

[systemd-devel] [PATCH] timesyncd: do not keep listening socket open forever

2014-11-26 Thread Sean Young
This also makes the source port less predicatable. --- src/timesync/timesyncd-manager.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c index 3ae01eb..03cfb24 100644 ---

[systemd-devel] Native Journal source vs syslog forwarding

2014-11-26 Thread Gergely Nagy
Hi! I have an interesting situation here, which I'm trying to wrap my head around and solve. The problem is that I have a syslog daemon (syslog-ng 3.6.1) that has a native Journal source, meaning it can pull entries from the Journal directly, and does not need the syslog forwarding socket - and

Re: [systemd-devel] Native Journal source vs syslog forwarding

2014-11-26 Thread Colin Guthrie
Gergely Nagy wrote on 26/11/14 10:04: 3) Disable syslog forwarding if syslog-ng is installed Not sure how this could be achieved, because journald.conf does not belong to the syslog-ng package, therefore I can't fiddle its settings from there. (Technically, I could, but I won't,

Re: [systemd-devel] Native Journal source vs syslog forwarding

2014-11-26 Thread Jóhann B. Guðmundsson
On 11/26/2014 10:04 AM, Gergely Nagy wrote: Hi! I have an interesting situation here, which I'm trying to wrap my head around and solve. The problem is that I have a syslog daemon (syslog-ng 3.6.1) that has a native Journal source, meaning it can pull entries from the Journal directly, and

Re: [systemd-devel] Compatibility between D-Bus and kdbus

2014-11-26 Thread Lennart Poettering
On Tue, 25.11.14 18:32, Thiago Macieira (thi...@kde.org) wrote: On Wednesday 26 November 2014 01:25:18 Lennart Poettering wrote: Thinking of non-system buses here. If the variable is empty, I agree that it should have an equivalent of an autostart mechanism, but I disagree on the

Re: [systemd-devel] Compatibility between D-Bus and kdbus

2014-11-26 Thread Lennart Poettering
On Tue, 25.11.14 18:46, Thiago Macieira (thi...@kde.org) wrote: On Wednesday 26 November 2014 00:46:50 David Herrmann wrote: We had systemd-bus-driverd, which implemented org.freedesktop.DBus as normal service. However, this didn't work out as many dbus clients rely on this services to not

Re: [systemd-devel] Native Journal source vs syslog forwarding

2014-11-26 Thread Gergely Nagy
Jóhann == Jóhann B Guðmundsson johan...@gmail.com writes: Jóhann On 11/26/2014 10:04 AM, Gergely Nagy wrote: On Debian, syslog forwarding is enabled by default, and since syslog-ng reads from the journal, there's nothing listening on /run/systemd/journal/syslog, and I get

Re: [systemd-devel] Native Journal source vs syslog forwarding

2014-11-26 Thread Gergely Nagy
Colin == Colin Guthrie gm...@colin.guthr.ie writes: Colin Gergely Nagy wrote on 26/11/14 10:04: 3) Disable syslog forwarding if syslog-ng is installed Not sure how this could be achieved, because journald.conf does not belong to the syslog-ng package, therefore I can't

Re: [systemd-devel] [PATCH 2/2] logind: Support logind.conf.d directories in the usual search paths

2014-11-26 Thread Gergely Nagy
Josh == Josh Triplett j...@joshtriplett.org writes: Josh This makes it possible to drop in logind configuration snippets from a Josh package or other configuration management mechanism. [...] Josh If this approach looks sensible, I'll send further patches for various Josh other

Re: [systemd-devel] [PATCH] rpcbind: systemd socket activation (v2)

2014-11-26 Thread Steve Dickson
On 11/25/2014 05:40 PM, J. Bruce Fields wrote: On Tue, Nov 25, 2014 at 12:05:32PM -0500, Steve Dickson wrote: This is based on a patch originally posted by Lennart Poettering: http://permalink.gmane.org/gmane.linux.nfs/33774. Have you run this by the reporter of

Re: [systemd-devel] [PATCH] rpcbind: add support for systemd socket activation

2014-11-26 Thread Steve Dickson
On 11/25/2014 12:05 PM, Steve Dickson wrote: From: Tom Gundersen t...@jklm.no Making rpcbind sockect activated will greatly simplify its integration in systemd systems. In essence, other services may now assume that rpcbind is always available, even during very early boot. This means that

Re: [systemd-devel] Native Journal source vs syslog forwarding

2014-11-26 Thread Jóhann B. Guðmundsson
On 11/26/2014 12:07 PM, Gergely Nagy wrote: Jóhann == Jóhann B Guðmundsson johan...@gmail.com writes: Jóhann On 11/26/2014 10:04 AM, Gergely Nagy wrote: On Debian, syslog forwarding is enabled by default, and since syslog-ng reads from the journal, there's nothing listening on

Re: [systemd-devel] Compatibility between D-Bus and kdbus

2014-11-26 Thread Simon McVittie
On 25/11/14 23:46, David Herrmann wrote: In particular, if gdbus runs AddMatch(), it assumes the match takes effect immediately. If it sends a method call to another service after installing the match, and this triggers a signal, gdbus assumes the AddMatch() call to have succeeded (without

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Peter Wu
(cc'ing Zbigniew because he introduced gold, cc'ing Gustavo because he added --gc-sections) On Monday 24 November 2014 20:00:58 Peter Wu wrote: The --gc-sections linker option triggers a bug in the gold linker[1] which results in a bogus .eh_frame section making debugging harder: gdb backtraces

[systemd-devel] [PATCH] add configuration for smackfs root

2014-11-26 Thread WaLyong Cho
The smackfs root was changed few month ago. But some of systems are still using old smackfs root. For compatibility, add smackfs root configure option. Default is /sys/fs/smackfs. --- Makefile.am | 1 + configure.ac| 7 +++ src/core/mount-setup.c | 2 +-

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Gustavo Sverzut Barbieri
On Wed, Nov 26, 2014 at 03:28:15PM +0100, Peter Wu wrote: (cc'ing Zbigniew because he introduced gold, cc'ing Gustavo because he added --gc-sections) On Monday 24 November 2014 20:00:58 Peter Wu wrote: The --gc-sections linker option triggers a bug in the gold linker[1] which results in a

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Michael Biebl
2014-11-26 18:16 GMT+01:00 Gustavo Sverzut Barbieri gustavo.barbi...@intel.com: My only comment is that we should also remove: -ffunction-sections -fdata-sections those are only useful to enable gc-sections. From time to time someone should run a build with

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Lennart Poettering
On Wed, 26.11.14 15:16, Gustavo Sverzut Barbieri (gustavo.barbi...@intel.com) wrote: I'm okay with the change to remove gc-sections. systemd is pretty good at not leaving crap in its code, then results are pretty small as we saw. My only comment is that we should also remove:

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Gustavo Sverzut Barbieri
On Wed, Nov 26, 2014 at 06:27:45PM +0100, Michael Biebl wrote: 2014-11-26 18:16 GMT+01:00 Gustavo Sverzut Barbieri gustavo.barbi...@intel.com: My only comment is that we should also remove: -ffunction-sections -fdata-sections those are only useful to enable gc-sections.

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Gustavo Sverzut Barbieri
On Wed, Nov 26, 2014 at 06:33:31PM +0100, Lennart Poettering wrote: On Wed, 26.11.14 15:16, Gustavo Sverzut Barbieri (gustavo.barbi...@intel.com) wrote: I'm okay with the change to remove gc-sections. systemd is pretty good at not leaving crap in its code, then results are pretty small

Re: [systemd-devel] Compatibility between D-Bus and kdbus

2014-11-26 Thread Thiago Macieira
On Wednesday 26 November 2014 12:27:16 Lennart Poettering wrote: Please also note that the autostart solution has a valid use-case which is when a D-Bus application is launched in an environment where no bus had been started before. I understand this is out-of-scope for kdbus, since after

Re: [systemd-devel] Compatibility between D-Bus and kdbus

2014-11-26 Thread Lennart Poettering
On Wed, 26.11.14 10:04, Thiago Macieira (thi...@kde.org) wrote: On Wednesday 26 November 2014 12:27:16 Lennart Poettering wrote: Please also note that the autostart solution has a valid use-case which is when a D-Bus application is launched in an environment where no bus had been

[systemd-devel] [PATCH v2] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Peter Wu
The `--gc-sections` linker option triggers a bug in the gold linker[1] (binutils 2.24 or older). This results in a bogus .eh_frame section making debugging harder: gdb backtraces stop at a library built by systemd and libunwind simply segfaults because it does not check for garbage values.

Re: [systemd-devel] Compatibility between D-Bus and kdbus

2014-11-26 Thread Lennart Poettering
On Wed, 26.11.14 10:10, Thiago Macieira (thi...@kde.org) wrote: On Wednesday 26 November 2014 12:35:33 Lennart Poettering wrote: Aside from the connection-control mechanisms (AddMatch, RemoveMatch), did you see any problems? It was primarily about that, but it is easy to construct

Re: [systemd-devel] Compatibility between D-Bus and kdbus

2014-11-26 Thread Thiago Macieira
On Wednesday 26 November 2014 19:30:16 Lennart Poettering wrote: I must be misunderstanding something. The kernel enforces that each bus name is prefixed with $UID-. This is why the system bus is /sys/fs/kdbus/0-system rather than just /sys/fs/kdbus/system. This makes sure that users

Re: [systemd-devel] Compatibility between D-Bus and kdbus

2014-11-26 Thread Thiago Macieira
On Wednesday 26 November 2014 19:44:46 Lennart Poettering wrote: Now, that's the reason why acquirename/releasename need to be implemented client side. With that knowledge we can punch holes in the other calls too. For example, the GetConnectionUnixProcessID() call you brought up: let's now

Re: [systemd-devel] Compatibility between D-Bus and kdbus

2014-11-26 Thread Lennart Poettering
On Wed, 26.11.14 11:08, Thiago Macieira (thi...@kde.org) wrote: On Wednesday 26 November 2014 19:30:16 Lennart Poettering wrote: I must be misunderstanding something. The kernel enforces that each bus name is prefixed with $UID-. This is why the system bus is /sys/fs/kdbus/0-system

Re: [systemd-devel] [PATCH v2] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Cristian Rodríguez
El 26/11/14 a las 15:31, Peter Wu escribió: [1]: https://sourceware.org/bugzilla/show_bug.cgi?id=17639 https://bugs.freedesktop.org/show_bug.cgi?id=8 --- v2:removed -ffunction-sections and -fdata-sections too, mention that binutils fixed the bug. --- -1 Just fix the

[systemd-devel] systemd-networkd: reload network unit from a non-root partition using a mount unit

2014-11-26 Thread Matthias Klein
Hello, I try to configure systemd 216 to boot an embedded board where the network configuration stays on a different partition. The boot should look like: - mount a partition called config using a mount unit - now systemd should reload its configuration to get two network units which resides

Re: [systemd-devel] [PATCH v2] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Nov 26, 2014 at 05:24:37PM -0300, Cristian Rodríguez wrote: El 26/11/14 a las 15:31, Peter Wu escribió: [1]: https://sourceware.org/bugzilla/show_bug.cgi?id=17639 https://bugs.freedesktop.org/show_bug.cgi?id=8 --- v2:removed -ffunction-sections and -fdata-sections too,

Re: [systemd-devel] systemd-networkd: reload network unit from a non-root partition using a mount unit

2014-11-26 Thread Tom Gundersen
Hi Matthias, On Wed, Nov 26, 2014 at 9:40 PM, Matthias Klein matthias.kl...@linux.com wrote: I try to configure systemd 216 to boot an embedded board where the network configuration stays on a different partition. The boot should look like: - mount a partition called config using a mount unit

[systemd-devel] How to start unit before everything else on shutdown

2014-11-26 Thread Nikolaus Rath
Hello, I'd like to start a unit on system shutdown and reboot, but do so immediately after the systemctl reboot command is executed, before any other units are terminated. Is there a way to do that? At first I thought that Before=shutdown.target might work, but thinking about it, I think this

[systemd-devel] systemd-cgroups-agent not working in containers

2014-11-26 Thread Richard Weinberger
Hi! I run a Linux container setup with openSUSE 13.1/2 as guest distro. After some time containers slow down. An investigation showed that the containers slow down because a lot of stale user sessions slow down almost all systemd tools, mostly systemctl. loginctl reports many thousand sessions.

[systemd-devel] Unbounded journal~ file accumulation

2014-11-26 Thread Moyer, Keith
Running v215-6 via Debian jessie In my situation, it is common to have unclean reboots. On the subsequent boot, a system@journal~ file is created. The problem is that these journal~ files do not trigger any cleanup with respect to SystemMaxUse. If this occurs repeatedly, disk usage can

Re: [systemd-devel] [PATCH] add configuration for smackfs root

2014-11-26 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Nov 27, 2014 at 01:02:01AM +0900, WaLyong Cho wrote: The smackfs root was changed few month ago. But some of systems are still using old smackfs root. For compatibility, add smackfs root configure option. Default is /sys/fs/smackfs. Sorry, /sys/fs/smackfs was made official in

Re: [systemd-devel] [PATCH v2] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Peter Wu
On Wednesday 26 November 2014 21:41:48 Zbigniew Jędrzejewski-Szmek wrote: On Wed, Nov 26, 2014 at 05:24:37PM -0300, Cristian Rodríguez wrote: El 26/11/14 a las 15:31, Peter Wu escribió: [1]: https://sourceware.org/bugzilla/show_bug.cgi?id=17639

Re: [systemd-devel] [PATCH v2] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Michael Biebl
2014-11-26 23:40 GMT+01:00 Peter Wu pe...@lekensteyn.nl: https://bugs.freedesktop.org/show_bug.cgi?id=8. Hmm, strange folks, they use --enable-compat-libs but then remove[2] the libraries...? We don't remove the libraries, we remove .so symlinks, since they are useless. -- Why is it

Re: [systemd-devel] [PATCH v2] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Peter Wu
On Wednesday 26 November 2014 23:55:52 Michael Biebl wrote: 2014-11-26 23:40 GMT+01:00 Peter Wu pe...@lekensteyn.nl: https://bugs.freedesktop.org/show_bug.cgi?id=8. Hmm, strange folks, they use --enable-compat-libs but then remove[2] the libraries...? We don't remove the libraries, we

Re: [systemd-devel] [PATCH 2/2] logind: Support logind.conf.d directories in the usual search paths

2014-11-26 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Nov 26, 2014 at 01:24:53PM +0100, Gergely Nagy wrote: Josh == Josh Triplett j...@joshtriplett.org writes: Josh This makes it possible to drop in logind configuration snippets from a Josh package or other configuration management mechanism. [...] Josh If this approach

Re: [systemd-devel] [PATCH 2/2] logind: Support logind.conf.d directories in the usual search paths

2014-11-26 Thread Josh Triplett
On Thu, Nov 27, 2014 at 01:45:43AM +0100, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Nov 26, 2014 at 01:24:53PM +0100, Gergely Nagy wrote: Josh == Josh Triplett j...@joshtriplett.org writes: Josh This makes it possible to drop in logind configuration snippets from a Josh

Re: [systemd-devel] [systemd-commits] 4 commits - src/core test/TEST-03-JOBS

2014-11-26 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Nov 26, 2014 at 07:35:30AM -0800, Michal Schmidt wrote: src/core/job.c |7 +-- src/core/job.h | 14 ++ src/core/transaction.c |2 +- test/TEST-03-JOBS/test-jobs.sh |9 + 4 files changed, 25 insertions(+), 7

Re: [systemd-devel] [PATCH v2 2/2] coredump: collect all /proc data useful for bug reporting

2014-11-26 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Nov 25, 2014 at 07:37:48AM +0100, Jakub Filak wrote: /proc/[pid]: - status - maps - limits - cgroup - cwd - root - environ - fd/ fdinfo/ joined in open_fds --- src/journal/coredump.c | 156 - 1 file changed, 154 insertions(+),

Re: [systemd-devel] [PATCH] timesyncd: do not keep listening socket open forever

2014-11-26 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Nov 26, 2014 at 09:33:30AM +, Sean Young wrote: This also makes the source port less predicatable. Applied. Zbyszek ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] [PATCH] journal-remote: do not install tmpfiles and sysusers files by default

2014-11-26 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Nov 26, 2014 at 09:17:50AM +0100, Łukasz Stelmach wrote: Change-Id: I5cbbcec134f52267ac4841b7d8f14d341a2d2184 Signed-off-by: Łukasz Stelmach l.stelm...@samsung.com I removed that lines... Applied. Zbyszek ___ systemd-devel mailing list

Re: [systemd-devel] [PATCH] networkd: route - allow routes without a gateway

2014-11-26 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Nov 24, 2014 at 03:51:31PM -0800, Gavin Li wrote: From: Gavin Li g...@thegavinli.com For IPv6, the kernel returns EINVAL if a route is added with the RTA_GATEWAY attribute set to in6addr_any (::). A route without a gateway is useful in some situations, such as layer 3 tunneling

Re: [systemd-devel] [PATCH] unit-name: fix escaping logic in unit_name_mangle_with_suffix().

2014-11-26 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Nov 25, 2014 at 09:58:14PM +0300, Ivan Shapovalov wrote: Make screened character set consistent with unit_name_mangle() by splitting off the escaping loop into a separate function. Before this fix, unit names such as `foo@bar.target` would get transformed into `foo\x40bar.target`

Re: [systemd-devel] [PATCH] journalctl: --follow with --since behaviour

2014-11-26 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Nov 25, 2014 at 08:47:49PM +0100, Andrej Manduch wrote: journalctl will print not only 10 lines but all relevant when --since is in use Hi, patch applied. --- 8 --- git am treates the stuff above this line as the commit message, while the stuff below is more interesting. I copied it

Re: [systemd-devel] [PATCH] udevadm hwdb: discard extra leading whitespaces in hwdb

2014-11-26 Thread Greg KH
On Thu, Nov 27, 2014 at 03:19:44PM +1000, Peter Hutterer wrote: Currently a property in the form of FOO=bar is stored as FOO=bar, i.e. the property name contains a leading space. That's quite hard to spot. This patch discards all extra whitespaces but the first one which is required by

Re: [systemd-devel] [PATCH v2 2/2] coredump: collect all /proc data useful for bug reporting

2014-11-26 Thread Jakub Filak
On Thu, 2014-11-27 at 06:30 +0100, Zbigniew Jędrzejewski-Szmek wrote: On Tue, Nov 25, 2014 at 07:37:48AM +0100, Jakub Filak wrote: ... This all looks (and works) great, so I implemented the changes suggested above and pushed your patch. Please check that I didn't break anything. I also

Re: [systemd-devel] [PATCH] udevadm hwdb: discard extra leading whitespaces in hwdb

2014-11-26 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Nov 26, 2014 at 09:55:10PM -0800, Greg KH wrote: On Thu, Nov 27, 2014 at 03:19:44PM +1000, Peter Hutterer wrote: Currently a property in the form of FOO=bar is stored as FOO=bar, i.e. the property name contains a leading space. That's quite hard to spot. This patch

Re: [systemd-devel] [PATCH] journal-remote: do not install tmpfiles and sysusers files by default

2014-11-26 Thread Łukasz Stelmach
It was 2014-11-27 czw 06:32, when Zbigniew Jędrzejewski-Szmek wrote: On Wed, Nov 26, 2014 at 09:17:50AM +0100, Łukasz Stelmach wrote: Change-Id: I5cbbcec134f52267ac4841b7d8f14d341a2d2184 Signed-off-by: Łukasz Stelmach l.stelm...@samsung.com I removed that lines... Sure, thanks. -- Łukasz