Re: [systemd-devel] Hackfest!

2013-02-18 Thread David Strauss
I'd like to participate online. Will people be joining a Google+ Hangout or the #systemd IRC channel? I'm personally interested in TLS support for the gateway. I have quite a bit of x.509 experience to add for development and documentation. On Mon, Feb 18, 2013 at 10:22 AM, Lennart Poettering wr

Re: [systemd-devel] python - reading the journal

2013-02-18 Thread David Strauss
On Mon, Feb 18, 2013 at 11:28 AM, Steven Hiscocks wrote: > Sounds good. I suppose `log_level` should become `add_loglevel_matches` for > consistency. (or actually `add_priority_matches`?) "Log level" is the Pythonic language; please continue using it. The journal itself may even move to it becaus

Re: [systemd-devel] High CPU usage of journald

2013-02-18 Thread Lennart Poettering
On Mon, 18.02.13 08:00, Holger Freyther (hol...@freyther.de) wrote: > Cristian Rodríguez opensuse.org> writes: > > Good Morning Cristian, > > > Why should systemd stop using standard IO functions to please some > > obscure, out of the ordinary need? > > Could you please clarify obscure? So an

Re: [systemd-devel] High CPU usage of journald

2013-02-18 Thread Lennart Poettering
On Sun, 17.02.13 17:54, Holger Freyther (hol...@freyther.de) wrote: > So where does _int_malloc come from? I have used gdb to 'sample' > it by hand. So the answer is from a lot of places. Do you consider > cutting back on how you dynamically allocate strings? E.g. stop > using fopen, fgets, only h

Re: [systemd-devel] High CPU usage of journald

2013-02-18 Thread Lennart Poettering
On Mon, 18.02.13 19:52, Holger Hans Peter Freyther (hol...@freyther.de) wrote: > > On Mon, Feb 18, 2013 at 08:47:44AM -0800, David Strauss wrote: > > Dear David, all, > > > > It's possible that a lot of it could also allocate on the stack or use > > stack-style management of a pool in heap. Th

Re: [systemd-devel] High CPU usage of journald

2013-02-18 Thread Kok, Auke-jan H
On Mon, Feb 18, 2013 at 2:50 PM, Colin Guthrie wrote: > 'Twas brillig, and Holger Hans Peter Freyther at 18/02/13 18:52 did gyre > and gimble: >> On Mon, Feb 18, 2013 at 08:47:44AM -0800, David Strauss wrote: >> >> Dear David, all, >> >> >>> It's possible that a lot of it could also allocate on th

Re: [systemd-devel] systemd + ssh-agent

2013-02-18 Thread Kok, Auke-jan H
On Mon, Feb 18, 2013 at 1:16 PM, Oleksii Shevchuk wrote: > I use this (with pam_gnome_keyring): > > > cat gnome-keyring-env.service > [Unit] > Description=Setup gnome keyring environment > > [Service] > Type=oneshot > ExecStart=/bin/sh -c "for env in $(gnome-keyring-daemon -s); do systemctl > --

Re: [systemd-devel] [PATCH] test-strv.c: added OOM check for current tests

2013-02-18 Thread Thomas H.P. Andersen
On Mon, Feb 18, 2013 at 4:48 PM, Daniel Buch wrote: > New OOM check patch: > > I do assert_se() before variable is used to do correct check. > > --- > src/test/test-strv.c | 16 > 1 file changed, 16 insertions(+) > > diff --git a/src/test/test-strv.c b/src/test/test-strv.c > inde

Re: [systemd-devel] High CPU usage of journald

2013-02-18 Thread Colin Guthrie
'Twas brillig, and Holger Hans Peter Freyther at 18/02/13 18:52 did gyre and gimble: > On Mon, Feb 18, 2013 at 08:47:44AM -0800, David Strauss wrote: > > Dear David, all, > > >> It's possible that a lot of it could also allocate on the stack or use >> stack-style management of a pool in heap. Th

Re: [systemd-devel] encrypted swap

2013-02-18 Thread Stefan G. Weichinger
Am 14.02.2013 00:23, schrieb Stefan G. Weichinger: > > I see an issue with systemd-197 on one of my gentoo systems. > > Encrypted swap doesn't get enabled correctly as mentioned below. > > In the git-repo of systemd I read in the TODO-file: > >> swap units that are activated by one name but sho

Re: [systemd-devel] systemd + ssh-agent

2013-02-18 Thread Oleksii Shevchuk
I use this (with pam_gnome_keyring): > cat gnome-keyring-env.service [Unit] Description=Setup gnome keyring environment [Service] Type=oneshot ExecStart=/bin/sh -c "for env in $(gnome-keyring-daemon -s); do systemctl --user set-environment $env; done" ExecStop=/bin/sh -c "for env in GNOME_KEYR

[systemd-devel] systemd + ssh-agent

2013-02-18 Thread Dan Tihelka
Hello, from time to time I must connect through ssh to mu work desktop and make some synchronization, which requires ssh key-based authentication (so ssh from home to work desktop, followed by ssh from desktop to another server, e.g. svn). What I was faced is the inability to use ssh-agent when

Re: [systemd-devel] RFC: user session lifetimes vs. $DISPLAY

2013-02-18 Thread Simon McVittie
On 18/02/13 19:08, Kok, Auke-jan H wrote: > On Mon, Feb 18, 2013 at 4:38 AM, Simon McVittie > wrote: >> It looks as though the intention is [...] >> I have one XDG_RUNTIME_DIR, one 'systemd >> --user' instance (as per systemd's TODO: started by logind using >> user@.service, on behalf of pam_syste

Re: [systemd-devel] killproc, pidofproc, ExecStop, ExecStart -advice please

2013-02-18 Thread Mantas Mikulėnas
On Mon, Feb 18, 2013 at 9:28 PM, lux-integ wrote: > Greetings, > > I am new to this list and learning to write systemd service scripts. I would > like to know if there are equivalents for the shell functions:- > > killproc() > pidofproc() > > used heavily in init scripts and as described in linu

Re: [systemd-devel] python - reading the journal

2013-02-18 Thread Steven Hiscocks
On 18/02/13 02:17, David Strauss wrote: Great progress! Thanks, and thank you for your feedback. A few more remarks: * Class methods ought to be verbs. "this_machine" and "this_boot" are the key ones that come to mind. Maybe "add_machine_match" and "add_boot_match"? Sounds good. I suppose `l

[systemd-devel] killproc, pidofproc, ExecStop, ExecStart -advice please

2013-02-18 Thread lux-integ
Greetings, I am new to this list and learning to write systemd service scripts. I would like to know if there are equivalents for the shell functions:- killproc() pidofproc() used heavily in init scripts and as described in linuxstandardbase (url below) http://refspecs.linuxbase.org/LSB_3.1

Re: [systemd-devel] RFC: user session lifetimes vs. $DISPLAY

2013-02-18 Thread Kok, Auke-jan H
On Mon, Feb 18, 2013 at 4:38 AM, Simon McVittie wrote: > I've recently been researching systemd's current support for user > sessions, with the goal of sorting out any remaining omissions/issues > and having GDM integrate well with it. > > It looks as though the intention is that if I have overlap

Re: [systemd-devel] High CPU usage of journald

2013-02-18 Thread Holger Hans Peter Freyther
On Mon, Feb 18, 2013 at 08:47:44AM -0800, David Strauss wrote: Dear David, all, > It's possible that a lot of it could also allocate on the stack or use > stack-style management of a pool in heap. This is pretty > performance-critical code, and we're seeing similar CPU overhead. I think upstrea

Re: [systemd-devel] [bug] (char*)NULL should be used in variadic functions

2013-02-18 Thread Lennart Poettering
On Sun, 17.02.13 20:40, Vasily Kulikov (seg...@openwall.com) wrote: > > Be that as it may, for us only Linux is relevant, and that implies glibc > > (or some other implementation of libc that implements the very same > > interfaces.) > > Why does any Linux libc must implement the very same ABI?

[systemd-devel] Hackfest!

2013-02-18 Thread Lennart Poettering
Heya! Just wanted to remind everybody that we'll have the systemd hackfest this Thursday and Friday in Brno, Czech Rep, right before devconf.cz. The hackfest friday will also double as Fedora Activity Day, hence we'll have a focus on systemd integration into Fedora then. If you hack on systemd,

Re: [systemd-devel] High CPU usage of journald

2013-02-18 Thread David Strauss
On Sun, Feb 17, 2013 at 9:54 AM, Holger Freyther wrote: > Do you consider > cutting back on how you dynamically allocate strings? E.g. stop > using fopen, fgets, only have one dynamically tmp string for the > various format routines one is using sequentially? It's possible that a lot of it could

[systemd-devel] [PATCH] test-strv.c: added OOM check for current tests

2013-02-18 Thread Daniel Buch
New OOM check patch: I do assert_se() before variable is used to do correct check. --- src/test/test-strv.c | 16 1 file changed, 16 insertions(+) diff --git a/src/test/test-strv.c b/src/test/test-strv.c index d2eb225..504415a 100644 --- a/src/test/test-strv.c +++ b/src/test/te

[systemd-devel] RFC: user session lifetimes vs. $DISPLAY

2013-02-18 Thread Simon McVittie
I've recently been researching systemd's current support for user sessions, with the goal of sorting out any remaining omissions/issues and having GDM integrate well with it. It looks as though the intention is that if I have overlapping sessions like this: * 14:00: log in to GDM on X11 display :

Re: [systemd-devel] systemd-fsck change fsck arguments to "-a" -> "-y"

2013-02-18 Thread Karel Zak
On Mon, Feb 18, 2013 at 11:52:31AM +0100, Karel Zak wrote: > On Wed, Feb 13, 2013 at 03:32:46AM +0100, Lennart Poettering wrote: > > > > Hmm, I wonder if -a or -y is the way to go. Karel, as util-linux/fsck > > > > maintainer, do you have an opinion whether we should use -a or -y for > > > > automa

Re: [systemd-devel] systemd-fsck change fsck arguments to "-a" -> "-y"

2013-02-18 Thread Karel Zak
On Wed, Feb 13, 2013 at 03:32:46AM +0100, Lennart Poettering wrote: > > > Hmm, I wonder if -a or -y is the way to go. Karel, as util-linux/fsck > > > maintainer, do you have an opinion whether we should use -a or -y for > > > automatic, non-interactive fscking? Is -a obsolete and -y the future? > >

Re: [systemd-devel] masked services and a lot of warnings

2013-02-18 Thread Mantas Mikulėnas
On Mon, Feb 18, 2013 at 11:05 AM, Reindl Harald wrote: > > > Am 18.02.2013 08:00, schrieb Mantas Mikulėnas: >> On Mon, Feb 18, 2013 at 3:17 AM, David Strauss >> wrote: >>> Couldn't you also just disable or mask the sources of activation? >> >> I'm not sure if this can be done when services are a

Re: [systemd-devel] masked services and a lot of warnings

2013-02-18 Thread Reindl Harald
Am 18.02.2013 08:00, schrieb Mantas Mikulėnas: > On Mon, Feb 18, 2013 at 3:17 AM, David Strauss wrote: >> Couldn't you also just disable or mask the sources of activation? > > I'm not sure if this can be done when services are activated via DBus > – other than removing the files in /usr/share/d

Re: [systemd-devel] [v2] udev: Expose new ISO9660 props from libblkid

2013-02-18 Thread Karel Zak
On Sat, Feb 16, 2013 at 05:40:18PM +0100, Kay Sievers wrote: > On Sat, Feb 16, 2013 at 4:45 PM, Zbigniew Jędrzejewski-Szmek > wrote: > > On Wed, Feb 13, 2013 at 05:39:54AM +0200, Zeeshan Ali (Khattak) wrote: > > >> +} else if (streq(name, "SYSTEM_ID")) > >> +udev_builtin_a

Re: [systemd-devel] High CPU usage of journald

2013-02-18 Thread Holger Freyther
Cristian Rodríguez opensuse.org> writes: Good Morning Cristian, > Why should systemd stop using standard IO functions to please some > obscure, out of the ordinary need? Could you please clarify obscure? So any embedded device that prints a couple of log messages on start of an application is