[systemd-devel] Starting different services from same process

2014-10-17 Thread Paassen, Hiram van
Hi, We use systemd to manage some python processes in an embedded environment (imx28 cpu). This works fantastic except for a fairly long startup sequence due to python being slow during the initialization of its standard libraries. We found a possible solution inspired by http://draketo.de/light/

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

2014-10-17 Thread Josh Triplett
On Fri, Oct 17, 2014 at 08:40:48AM +0300, Mantas Mikulėnas wrote: > On Fri, Oct 17, 2014 at 7:29 AM, Josh Triplett wrote: > > This makes it possible to drop in logind configuration snippets from a > > package or other configuration management mechanism. > > I'm still very curious what packages wo

[systemd-devel] How is desktop container getting along?

2014-10-17 Thread Leslie Zhai
Hi systemd developers, I am studying namespace, seccomp, pivot_root, cgroups and other thing behind Linux container such as lxc and docker recently. But there are only lots of use cases about Linux Server and web application, as a Linux desktop geek, I often consider about the disadvantage o

Re: [systemd-devel] Starting different services from same process

2014-10-17 Thread David Timothy Strauss
On Fri, Oct 17, 2014 at 9:03 AM, Paassen, Hiram van wrote: > Is it possible to start multiple different services from one process? In short, that is not sanely possible. If you care about latency for accessing the service, even on the first request, then just don't activate it using DBus. Enable

Re: [systemd-devel] How is desktop container getting along?

2014-10-17 Thread David Timothy Strauss
On Fri, Oct 17, 2014 at 9:47 AM, Leslie Zhai wrote: > But there are only lots of use cases about Linux Server and web application, > as a Linux desktop geek, I often consider about the disadvantage of > traditional deployment of Linux desktop application. Krita, for example, an > awesome digital p

Re: [systemd-devel] How is desktop container getting along?

2014-10-17 Thread Leslie Zhai
Hi David, Thanks for reply ;) 0. yes, container (namespaces, seccomp, pivot_root, cgroups) is more than that! 1 && 2. I just take cross library as an instance ;) 3. I have no idea about X11, but there is isolated Wayland solution, isn' it? so I want to follow the desktop container and GNOME

[systemd-devel] [PATCH] environment: append unit_id to error messages regarding EnvironmentFile

2014-10-17 Thread Lukas Nykryn
--- src/core/execute.c | 6 +++--- src/core/execute.h | 2 +- src/shared/env-util.c | 7 --- src/shared/env-util.h | 2 +- src/test/test-fileio.c | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/core/execute.c b/src/core/execute.c index b165b33..f515934 100

[systemd-devel] [PATCH v2] environment: append unit_id to error messages regarding EnvironmentFile

2014-10-17 Thread Lukas Nykryn
--- I have swapped parameters in test-fileio in previous version src/core/execute.c | 6 +++--- src/core/execute.h | 2 +- src/shared/env-util.c | 7 --- src/shared/env-util.h | 2 +- src/test/test-fileio.c | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/

Re: [systemd-devel] [PATCH] systemctl: add edit verb

2014-10-17 Thread Lennart Poettering
On Mon, 13.10.14 13:40, David Herrmann (dh.herrm...@gmail.com) wrote: > Hi > > On Sat, Oct 11, 2014 at 8:17 PM, Daniel Buch wrote: > > Nice, I was in the process of implementing this. Looks good to me. But I > > think it would be better to use "vi" instead of "vim" if no &editor is set. > > Vim

Re: [systemd-devel] [PATCH] systemctl: add edit verb

2014-10-17 Thread Mantas Mikulėnas
On Fri, Oct 17, 2014 at 2:24 PM, Lennart Poettering wrote: > On Mon, 13.10.14 13:40, David Herrmann (dh.herrm...@gmail.com) wrote: > >> Hi >> >> On Sat, Oct 11, 2014 at 8:17 PM, Daniel Buch >> wrote: >> > Nice, I was in the process of implementing this. Looks good to me. But I >> > think it woul

Re: [systemd-devel] [systemd-commits] src/core

2014-10-17 Thread Lennart Poettering
On Fri, 17.10.14 02:58, Michal Sekletar (msekl...@kemper.freedesktop.org) wrote: > src/core/execute.c |5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > New commits: > commit 0015ebf3fa524d414a947bdf0814782a8ee00799 > Author: Michal Sekletar > Date: Fri Oct 17 11:51:46 2014 +0

[systemd-devel] [PATCH 0/2] localectl: verify layout, model, varian and options; fix manpage

2014-10-17 Thread Jan Synacek
Small localectl fixes. Both patches fix https://bugzilla.redhat.com/show_bug.cgi?id=1049306. Jan Synacek (2): man: fix localectl set-x11-keymap syntax description localectl: verify layout, model, variant and options man/localectl.xml | 2 +- src/locale/localectl.c | 179 +

[systemd-devel] [PATCH 1/2] man: fix localectl set-x11-keymap syntax description

2014-10-17 Thread Jan Synacek
--- man/localectl.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/localectl.xml b/man/localectl.xml index 38e73c7..c332027 100644 --- a/man/localectl.xml +++ b/man/localectl.xml @@ -178,7 +178,7 @@ -

Re: [systemd-devel] Fwd: [PATCH v3] tests: added tests for unit_file_get_{state, list}

2014-10-17 Thread Martin Pitt
Hello Ken, David, sorry for breaking the thread. Thanks for adding these tests! This looks good to me, I just have some nitpicks. NB that I'm not really familiar with the systemd code, so my comments are certainly not complete. David Timothy Strauss [2014-10-17 13:42 +0200]: > diff --git a/Makef

[systemd-devel] [PATCH 2/2] localectl: verify layout, model, variant and options

2014-10-17 Thread Jan Synacek
When setting any of those using set-x11-keymap, check that their values are available on the system. --- src/locale/localectl.c | 179 ++--- 1 file changed, 110 insertions(+), 69 deletions(-) diff --git a/src/locale/localectl.c b/src/locale/localectl.c

Re: [systemd-devel] [PATCH] systemctl: add edit verb

2014-10-17 Thread Lennart Poettering
On Fri, 17.10.14 14:29, Mantas Mikulėnas (graw...@gmail.com) wrote: > > Technically proficient people will set $EDITOR or $VISUAL > > anyway. Non-technical people won't. Non-technical people are likel to > > be totally lost in vi/vim. For those folks probably nano makes a > > better choice, simply

Re: [systemd-devel] [PATCH] systemctl: add edit verb

2014-10-17 Thread Lennart Poettering
On Fri, 17.10.14 13:30, David Timothy Strauss (da...@davidstrauss.net) wrote: > On Fri, Oct 17, 2014 at 1:24 PM, Lennart Poettering > wrote: > > Does this make sense? > > Speaking as a nano user and someone who barely knows how to quit vim, > I still think the decision of the default editor shou

Re: [systemd-devel] [PATCH] systemctl: add edit verb

2014-10-17 Thread Mantas Mikulėnas
On Fri, Oct 17, 2014 at 3:11 PM, Lennart Poettering wrote: > On Fri, 17.10.14 14:29, Mantas Mikulėnas (graw...@gmail.com) wrote: > >> > Technically proficient people will set $EDITOR or $VISUAL >> > anyway. Non-technical people won't. Non-technical people are likel to >> > be totally lost in vi/vi

[systemd-devel] [PATCH] udev hwdb: Support shipping pre-compiled database in system images

2014-10-17 Thread Martin Pitt
Hello all, as discussed on the plumbers conference, I would like to optionally move the compiled hwdb.bin out of /etc/. For r/o system images it is much nicer if they can just ship a pre-generated hwdb in /usr without having to build it at runtime/factory reset time, and avoid having to carry it i

Re: [systemd-devel] [PATCH v2] environment: append unit_id to error messages regarding EnvironmentFile

2014-10-17 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Oct 17, 2014 at 11:46:01AM +0200, Lukas Nykryn wrote: > --- > > I have swapped parameters in test-fileio in previous version > src/core/execute.c | 6 +++--- > src/core/execute.h | 2 +- > src/shared/env-util.c | 7 --- > src/shared/env-util.h | 2 +- > src/test/test-fileio.

[systemd-devel] [PATCH v2] udev hwdb: Support shipping pre-compiled database in system images

2014-10-17 Thread Martin Pitt
Hello again, the previous patch had a typo in the manpage (it said "/lib/udev" instead of "/usr/lib/udev" at one place), and also forgot to adjust systemd-udev-hwdb-update.service.in. Both done now. However, the latter currently has a gotcha: +ConditionPathExists=!@udevlibexecdir@/hwdb.bin Th

Re: [systemd-devel] [PATCH 1/2] man: fix localectl set-x11-keymap syntax description

2014-10-17 Thread Ran Benita
On Fri, Oct 17, 2014 at 02:02:12PM +0200, Jan Synacek wrote: > --- > man/localectl.xml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/man/localectl.xml b/man/localectl.xml > index 38e73c7..c332027 100644 > --- a/man/localectl.xml > +++ b/man/localectl.xml > @@ -178,7 +17

Re: [systemd-devel] [PATCH v2] environment: append unit_id to error messages regarding EnvironmentFile

2014-10-17 Thread Lukáš Nykrýn
Zbigniew Jędrzejewski-Szmek píše v Pá 17. 10. 2014 v 15:40 +0200: > On Fri, Oct 17, 2014 at 11:46:01AM +0200, Lukas Nykryn wrote: > > --- > > > > I have swapped parameters in test-fileio in previous version > > src/core/execute.c | 6 +++--- > > src/core/execute.h | 2 +- > > src/shared/e

Re: [systemd-devel] [PATCH 2/2] localectl: verify layout, model, variant and options

2014-10-17 Thread Ran Benita
On Fri, Oct 17, 2014 at 02:02:13PM +0200, Jan Synacek wrote: > When setting any of those using set-x11-keymap, check that their values > are available on the system. I have only skimmed this patch, but generally: 1. There can only be one model. 2. There can be multiple layouts and variants, comma

Re: [systemd-devel] [PATCH] systemctl: add edit verb

2014-10-17 Thread Dale R. Worley
> From: Mantas Mikulėnas > Normally $VISUAL would be first, followed by $EDITOR... > > (But in practice nobody sets them to different values anyway, since no > programs aside from mailx care about the distinction. So it's fine > either way, and just ignoring $VISUAL would be just as good.) I ra

[systemd-devel] How soon after login can I rely on systemd --user having reached sockets.target?

2014-10-17 Thread Colin Guthrie
Hi, How soon after login can I rely on systemd --user having reached sockets.target? This feels a bit like a "you shouldn't rely on that point in time..." type answer is warrented, and when e.g. GNOME or KDE sessions fully use systemd to bring themselves up it won't be an issue, but right now, sy

[systemd-devel] How to use cgroups within containers?

2014-10-17 Thread Richard Weinberger
Dear systemd and container folks, at Plumbers the question raised how to provide cgroups to a systemd that lives in a container (with user namespaces). Due to the GDL train strikes I had to leave very soon and had no chance to talk to you in person. Was a solution proposed? All I want to know is

Re: [systemd-devel] How to use cgroups within containers?

2014-10-17 Thread Richard Weinberger
...fixing LXC devel mailinglist... :-\ On Fri, Oct 17, 2014 at 11:35 PM, Richard Weinberger wrote: > Dear systemd and container folks, > > at Plumbers the question raised how to provide cgroups to a systemd that lives > in a container (with user namespaces). > Due to the GDL train strikes I had t

Re: [systemd-devel] How to use cgroups within containers?

2014-10-17 Thread Cameron Norman
On Fri, Oct 17, 2014 at 2:37 PM, Richard Weinberger wrote: > ...fixing LXC devel mailinglist... :-\ > > On Fri, Oct 17, 2014 at 11:35 PM, Richard Weinberger > wrote: >> Dear systemd and container folks, >> >> at Plumbers the question raised how to provide cgroups to a systemd that >> lives >> in

[systemd-devel] [PATCH] test-manyunits: test unit_file_get_list perforamnce with many units

2014-10-17 Thread Ken Sedgwick
This test temporarily creates several thousand unit files and checks the performance of unit_file_get_list. This test is currently added to manual_tests only since it does not pass. This test does pass if the enabled unit cache patch is applied. --- .gitignore| 1 + Makefile.am

[systemd-devel] [PATCH, REVIEW, v2] find_symlinks: adds a cache of enabled unit symbolic link state

2014-10-17 Thread Ken Sedgwick
The current find_symlinks_fd code traverses the config directories duplicatively. This is a performance problem if 1000s of units are being controlled. This patch adds a hashmap cache of symbolic link state which is filled in one traversal and then consulted as needed to prevent re-traversal. The

Re: [systemd-devel] [PATCH, REVIEW, v2] find_symlinks: adds a cache of enabled unit symbolic link state

2014-10-17 Thread Ronny Chevalier
Hi, 2014-10-18 1:34 GMT+02:00 Ken Sedgwick : > The current find_symlinks_fd code traverses the config directories > duplicatively. This is a performance problem if 1000s of units are > being controlled. This patch adds a hashmap cache of symbolic link > state which is filled in one traversal and t