[systemd-devel] Socket activation and busname aliases in Network/ModemManager

2013-06-20 Thread Colin Guthrie
Hi, Leading on from the "Masking socket activated..." thread recently, I was thinking a bit about some of the units in Network Manager. Network Manager 0.9.8.0 contains the following NetworkManager.service unit. [Unit] Description=Network Manager After=syslog.target Wants=network.target Before=n

Re: [systemd-devel] Socket activation and busname aliases in Network/ModemManager

2013-06-20 Thread Colin Guthrie
'Twas brillig, and Colin Guthrie at 20/06/13 09:31 did gyre and gimble: > Now for NetworkManager itself this more or less OK. You'll be needing it > pretty much immediately on boot anyway, but what's caught me out a > little bit more is that ModemManager (0.7.991) also follows this same > pattern.

Re: [systemd-devel] Problems with SWAP in 204

2013-06-20 Thread Henrik /KaarPoSoft
On 06/19/2013 05:35 PM, Colin Guthrie wrote: 'Twas brillig, and Henrik /KaarPoSoft at 19/06/13 13:06 did gyre and gimble: However, I do think that you are on to something important here! According to the output of systemctl --full --all --type=swap (attached in previous mail) it seems that syst

[systemd-devel] Modifying kernel vars through sysctl.d

2013-06-20 Thread Belal, Awais
Hi, I am trying to update a kernel variable on boot. So, after reading a bit here and there I found out that I could simply provide a .conf file under /etc/sysctl.d/ and have my required configs in it. I placed a file ipv6.conf under the mentioned directory with the contents: net.ipv6.conf.eth

Re: [systemd-devel] Socket activation and busname aliases in Network/ModemManager

2013-06-20 Thread Michael Biebl
2013/6/20 Colin Guthrie : > I presume that to have "bus activation by default", the only change > needed would be to change the dbus .service file for modem manager to > refer to the SystemdService via it's normal name and not via it's bus > alias? Is this the "expected" way to work. The relevant

Re: [systemd-devel] Socket activation and busname aliases in Network/ModemManager

2013-06-20 Thread Mantas Mikulėnas
On Thu, Jun 20, 2013 at 5:00 PM, Michael Biebl wrote: > 2013/6/20 Colin Guthrie : >> I presume that to have "bus activation by default", the only change >> needed would be to change the dbus .service file for modem manager to >> refer to the SystemdService via it's normal name and not via it's bus

[systemd-devel] assigning one udev attr to another

2013-06-20 Thread Jason A. Donenfeld
I'd like to have a rule that does this: zx2c4@thinkpad /etc/udev/rules.d $ cat 90-hotkeys.rules DRIVER=="thinkpad_acpi", ATTR{hotkey_mask}=ATTR{hotkey_recommended_mask} Unfortunately, it "doesn't work." This works: zx2c4@thinkpad /etc/udev/rules.d $ cat 90-hotkeys.rules DRIVER=="thinkpad_acpi",

Re: [systemd-devel] assigning one udev attr to another

2013-06-20 Thread Martin Pitt
Jason A. Donenfeld [2013-06-20 17:36 +0200]: > I'd like to have a rule that does this: > > zx2c4@thinkpad /etc/udev/rules.d $ cat 90-hotkeys.rules > DRIVER=="thinkpad_acpi", ATTR{hotkey_mask}=ATTR{hotkey_recommended_mask} Try DRIVER=="thinkpad_acpi", ATTR{hotkey_mask}="$attr{hotkey_recommended_

Re: [systemd-devel] assigning one udev attr to another

2013-06-20 Thread Jason A. Donenfeld
Perfect, thanks! ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Modifying kernel vars through sysctl.d

2013-06-20 Thread Andrey Borzenkov
В Thu, 20 Jun 2013 12:24:06 + "Belal, Awais" пишет: > Hi, > > I am trying to update a kernel variable on boot. So, after reading a bit here > and there I found out that I could simply provide a .conf file under > /etc/sysctl.d/ and have my required configs in it. I placed a file ipv6.conf

Re: [systemd-devel] Socket activation and busname aliases in Network/ModemManager

2013-06-20 Thread Lennart Poettering
On Thu, 20.06.13 09:31, Colin Guthrie (gm...@colin.guthr.ie) wrote: > As is uses the dbus alias, I guess the intention is that it only works > when the service is enabled in systemd. Without the service being > enabled, the alias does not exist and thus it cannot be bus activated. Correct. > I g

Re: [systemd-devel] Modifying kernel vars through sysctl.d

2013-06-20 Thread Lennart Poettering
On Thu, 20.06.13 12:24, Belal, Awais (awais_be...@mentor.com) wrote: > Hi, > > I am trying to update a kernel variable on boot. So, after reading a bit here > and there I found out that I could simply provide a .conf file under > /etc/sysctl.d/ and have my required configs in it. I placed a fil

Re: [systemd-devel] [PATCH] Describe handling of an AF_UNIX socket

2013-06-20 Thread Lennart Poettering
On Wed, 19.06.13 14:59, Łukasz Stelmach (l.stelm...@samsung.com) wrote: > Describe how to handle an AF_UNIX socket, with Accept set to false, > received from systemd, upon exit. > > Signed-off-by: Łukasz Stelmach > --- > man/systemd.socket.xml | 12 +--- > 1 file changed, 9 insertions

Re: [systemd-devel] [PATCH] Delay dbus connection for user session

2013-06-20 Thread Lennart Poettering
On Wed, 19.06.13 20:58, Kok, Auke-jan H (auke-jan.h@intel.com) wrote: > >> Yes, just in that case. If all of you agreed, I'd like submit a V2 to > >> drop these lines. > > > > Hmm, this would break my usual testing routine, where i run user systemd > > against a bus daemon that is already runn

Re: [systemd-devel] Text input on startup (tty-force) disabling after a few seconds

2013-06-20 Thread Lennart Poettering
On Wed, 19.06.13 14:52, Natanji (nata...@gmail.com) wrote: > Hi everyone, > I'm somewhat new to systemd and have a problem. I would like to run a > custom script with systemd on startup that will ask me for a password > and mount a Truecrypt volume with it. The script and unit file I wrote > can b

Re: [systemd-devel] Patch for Smack labelling support in udev

2013-06-20 Thread Lennart Poettering
On Wed, 19.06.13 12:09, Reshetova, Elena (elena.reshet...@intel.com) wrote: > This is the patch for review for enabling smack labelling for device > nodes. > > The functionality and reasoning is inside. I will be happy to answer > any questions. > >>> > >>> So, this needs some

Re: [systemd-devel] [PATCH] core: switch to journal when socket is listening

2013-06-20 Thread Lennart Poettering
On Wed, 19.06.13 13:36, Umut Tezduyar (u...@tezduyar.com) wrote: > Hi Lennart, > > I didn't quite understand how this could end up in a deadlock > (http://lists.freedesktop.org/archives/systemd-devel/2013-June/011404.html) Here's an example: a) PID 1 is running, journald is not, the socket is a

Re: [systemd-devel] We are working on trying to scale up to > 1000 containers.

2013-06-20 Thread Lennart Poettering
On Tue, 18.06.13 09:11, Daniel J Walsh (dwa...@redhat.com) wrote: > One concern we have is what will happen to systemd if we start 1000 services > at boot. > > systemctl start httpd_sandbox.target > > For example. > > Is there anything we can do to throttle the start of so many unit files. Or

Re: [systemd-devel] We are working on trying to scale up to > 1000 containers.

2013-06-20 Thread Kok, Auke-jan H
On Thu, Jun 20, 2013 at 12:23 PM, Lennart Poettering wrote: > On Tue, 18.06.13 09:11, Daniel J Walsh (dwa...@redhat.com) wrote: > >> One concern we have is what will happen to systemd if we start 1000 services >> at boot. >> >> systemctl start httpd_sandbox.target >> >> For example. >> >> Is there

Re: [systemd-devel] [RFC PATCH] journal: allow callers to specify OBJECT_PID=

2013-06-20 Thread Lennart Poettering
On Wed, 12.06.13 00:42, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > When journald encounters a message with OBJECT_PID= set > coming from a priviledged process (UID==0), additional fields > will be added to the message: > > OBJECT_UID=, > OBJECT_GID=, > OBJECT_COMM=, > OBJECT_EXE=, >

Re: [systemd-devel] [RFC PATCH] journal: allow callers to specify OBJECT_PID=

2013-06-20 Thread Lennart Poettering
On Thu, 20.06.13 21:48, Lennart Poettering (lenn...@poettering.net) wrote: > On Wed, 12.06.13 00:42, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > When journald encounters a message with OBJECT_PID= set > > coming from a priviledged process (UID==0), additional fields > > will be a

Re: [systemd-devel] [PATCH] manager: add DefaultEnvironment option

2013-06-20 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jun 20, 2013 at 08:12:00AM +0200, Umut Tezduyar wrote: > On Sun, Jun 9, 2013 at 7:08 AM, Umut Tezduyar wrote: > > --- > > man/systemd-system.conf.xml | 21 + > > man/systemd.exec.xml| 5 +++-- > > src/core/load-fragment.c| 8 ++-- > > src/core/main.c

[systemd-devel] [PATCH] Only attempt to connect to a session bus if one likely exists.

2013-06-20 Thread Auke Kok
Cc: chengwei.y...@intel.com Cc: lenn...@poettering.net --- src/core/manager.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/core/manager.c b/src/core/manager.c index f16621a..592f332 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -509,9 +509,14 @@

Re: [systemd-devel] [PATCH] Only attempt to connect to a session bus if one likely exists.

2013-06-20 Thread Lennart Poettering
On Thu, 20.06.13 13:36, Auke Kok (auke-jan.h@intel.com) wrote: Applied, with some coding style fixes. > Cc: chengwei.y...@intel.com > Cc: lenn...@poettering.net > --- > src/core/manager.c | 11 --- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/src/core/manager.c

Re: [systemd-devel] Patch for Smack labelling support in udev

2013-06-20 Thread Reshetova, Elena
-Original Message- From: Lennart Poettering [mailto:lenn...@poettering.net] Sent: Thursday, June 20, 2013 10:08 PM To: Reshetova, Elena On Wed, 19.06.13 12:09, Reshetova, Elena (elena.reshet...@intel.com) wrote: > This is the patch for review for enabling smack labelling for >

Re: [systemd-devel] Text input on startup (tty-force) disabling after a few seconds

2013-06-20 Thread Natanji
Thanks everyone for pointing me in the right direction. I managed to solve the problem with your help; short report incoming in case anyone is interested. Simon's suggested approach worked quite nicely just right out of the box, however it didn't fix the problem. In fact, my old script still does

Re: [systemd-devel] [PATCH] tmpfiles, man: Add xattr support to tmpfiles

2013-06-20 Thread Lennart Poettering
On Wed, 19.06.13 17:02, Maciej Wereski (m.were...@partner.samsung.com) wrote: Heya, > >I think adding this certainly makes sense, but I am not sure I like the > >syntax. Maybe it would be simpler to add an extra char for this ("a" or > >so?). That way creating a dir and applying an xattr would re

[systemd-devel] Excessive (virtual) memory usage of journald

2013-06-20 Thread Holger Freyther
Good Morning, I had postponed the adoption of systemd due the excessive CPU usage of the journald. I am re-evaluating the situation with version 204 right now and I noticed that the (virtual) address space is getting unusual big. My journald config configuration is: [Journal] Storage=volatil