Re: [systemd-devel] pam_systemd closing user's session prematurely

2012-10-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Oct 16, 2012 at 04:27:24PM -0400, Ray Strode wrote: > Hi, > > On Tue, Oct 16, 2012 at 2:20 PM, Lennart Poettering > wrote: > > I have now commited a fix that achieves the same as yours but doesn't > > key this of the static service database: I simply extended the > > OpenSession() bus cal

[systemd-devel] [PATCH] mount: make sure m->where is set before unit_add_exec_dependencies()

2012-10-16 Thread Will Woods
If you enter unit_add_exec_dependencies with m->where = NULL, you'll very likely end up aborting somewhere under socket_needs_mount. (When systemd goes to check to see if the journald socket requires your mount, it'll do path_startswith(path, m->where)... *kaboom*) This patch should ensure that:

Re: [systemd-devel] pam_systemd closing user's session prematurely

2012-10-16 Thread Ray Strode
Hi, >> Please test! > Will do. I did: $ loginctl show-session $XDG_SESSION_ID $ su - # exit $ loginctl show-session $XDG_SESSION_ID and in both cases State=active So patch seems to work. Thanks Ray ___ systemd-devel mailing list systemd-devel@lists

Re: [systemd-devel] pam_systemd closing user's session prematurely

2012-10-16 Thread Ray Strode
Hi, On Tue, Oct 16, 2012 at 2:20 PM, Lennart Poettering wrote: > I have now commited a fix that achieves the same as yours but doesn't > key this of the static service database: I simply extended the > OpenSession() bus call to inform clients whether they are a new session > or just got the previ

Re: [systemd-devel] pam_systemd closing user's session prematurely

2012-10-16 Thread Lennart Poettering
On Fri, 12.10.12 15:45, Ray Strode (halfl...@gmail.com) wrote: > Hi, Heya, > Some GDM/gnome-shell users having a rather strange issue where they > can't unlock their screen because logind thinks their session is no > longer active: > > https://bugzilla.gnome.org/show_bug.cgi?id=685988 > I've a

Re: [systemd-devel] systemd hibernation process

2012-10-16 Thread Lennart Poettering
On Tue, 16.10.12 18:13, Federico Di Pierro (nierr...@gmail.com) wrote: > Hi! > I was trying to understand how does systemd hibernation process work. > What i mean is: with pm-utils i had to put "tuxonice" in a > /etc/pm/config.d/ file, within the SLEEP_MODULE array, to make pm work with > it. > Sy

Re: [systemd-devel] Hang when mounting NFS via systemd

2012-10-16 Thread Bardur Arantsson
On 10/16/2012 02:39 AM, Lennart Poettering wrote: > On Mon, 08.10.12 19:57, Bardur Arantsson (s...@scientician.net) wrote: > >> >> On 09/24/2012 12:56 PM, Lennart Poettering wrote: >>> On Sun, 23.09.12 17:21, Bardur Arantsson (s...@scientician.net) wrote: >>> Hi all, >> [--snip--] >>> >>

[systemd-devel] systemd hibernation process

2012-10-16 Thread Federico Di Pierro
Hi! I was trying to understand how does systemd hibernation process work. What i mean is: with pm-utils i had to put "tuxonice" in a /etc/pm/config.d/ file, within the SLEEP_MODULE array, to make pm work with it. Systemd instead seems to do this without any input from the user...that's great, but h

Re: [systemd-devel] journalctl segfault in gcrypt code

2012-10-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Oct 16, 2012 at 04:13:15PM +0200, Zbigniew Jędrzejewski-Szmek wrote: > On Tue, Oct 16, 2012 at 01:01:04AM +0200, Lennart Poettering wrote: > > On Mon, 15.10.12 23:02, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) > > wrote: > > > > > > > > On Mon, Oct 15, 2012 at 10:01:31PM +0200, Lenn

Re: [systemd-devel] [PATCH 1/2] journal: Properly track the number of allocated windows.

2012-10-16 Thread Lennart Poettering
On Tue, 16.10.12 12:03, Colin Guthrie (co...@mageia.org) wrote: > Checks were already in place to make sure that the number of > windows was limited to 64, but the count was never incremented > or decremented. Commited both! Thanks a ton for tracking this down! Lennart -- Lennart Poettering -

Re: [systemd-devel] journalctl segfault in gcrypt code

2012-10-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Oct 16, 2012 at 01:01:04AM +0200, Lennart Poettering wrote: > On Mon, 15.10.12 23:02, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > > > On Mon, Oct 15, 2012 at 10:01:31PM +0200, Lennart Poettering wrote: > > > On Sat, 13.10.12 17:59, Zbigniew Jędrzejewski-Szmek (zbys...@in.

Re: [systemd-devel] [PATCH] systemctl: append .service when unit does not have valid suffix

2012-10-16 Thread Lennart Poettering
On Tue, 16.10.12 11:01, Lukas Nykryn (lnyk...@redhat.com) wrote: > systemctl status a and systemctl status a.service lead to same output but > systemctl status a.b and systemctl status a.b.service do not. Thanks! Appplied! > --- > src/shared/unit-name.c |6 +- > 1 files changed, 1 inser

Re: [systemd-devel] [PATCH 1/2] core: Refuse to run a user instance when the system hasn't been booted with systemd.

2012-10-16 Thread Lennart Poettering
On Tue, 16.10.12 15:35, Michael Biebl (mbi...@gmail.com) wrote: > > 2012/10/16 Lennart Poettering : > > Now, Thomas' patch actually changes much less than people might > > think. This is because sd_booted() simply checks whether > > /sys/fs/cgroup/systemd is mounted. But to run --user on a foreig

Re: [systemd-devel] [PATCH 1/2] core: Refuse to run a user instance when the system hasn't been booted with systemd.

2012-10-16 Thread Michael Biebl
2012/10/16 Lennart Poettering : > Now, Thomas' patch actually changes much less than people might > think. This is because sd_booted() simply checks whether > /sys/fs/cgroup/systemd is mounted. But to run --user on a foreign system > you need to set that tree up anyway, as that is a requirement for

Re: [systemd-devel] [PATCH 1/2] core: Refuse to run a user instance when the system hasn't been booted with systemd.

2012-10-16 Thread Lennart Poettering
On Tue, 16.10.12 09:33, Colin Guthrie (gm...@colin.guthr.ie) wrote: > > 'Twas brillig, and Lennart Poettering at 16/10/12 01:18 did gyre and gimble: > > On Sat, 06.10.12 01:11, Thomas Bächler (tho...@archlinux.org) wrote: > > > >> Running as a user instance won't work at all if systemd isn't run

[systemd-devel] [PATCH 2/2] journal: Set the last_unused pointer correctly when attaching an unused window

2012-10-16 Thread Colin Guthrie
It seems the previous code was copy/pasted from context_detach_window() but not updated. --- src/journal/mmap-cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/journal/mmap-cache.c b/src/journal/mmap-cache.c index 7813f03..251aefe 100644 --- a/src/journal/mmap-cac

[systemd-devel] [PATCH 1/2] journal: Properly track the number of allocated windows.

2012-10-16 Thread Colin Guthrie
Checks were already in place to make sure that the number of windows was limited to 64, but the count was never incremented or decremented. --- src/journal/mmap-cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/journal/mmap-cache.c b/src/journal/mmap-cache.c index 88fe523..7813f03

Re: [systemd-devel] journald leaking maps?

2012-10-16 Thread Colin Guthrie
'Twas brillig, and Colin Guthrie at 16/10/12 01:06 did gyre and gimble: > 'Twas brillig, and Lennart Poettering at 16/10/12 00:27 did gyre and gimble: >> On Thu, 11.10.12 23:31, Colin Guthrie (gm...@colin.guthr.ie) wrote: >> >>> Hi, >>> >>> This has been discussion on IRC but I've not heard anythin

Re: [systemd-devel] [PATCH 1/2] core: Refuse to run a user instance when the system hasn't been booted with systemd.

2012-10-16 Thread Manuel Amador (Rudd-O)
I would like to be able to run systemd on systems that did not boot up with systemd. For testing purposes and because I have some projects that reuse systemd as a transaction computation engine. Thanks. Colin Guthrie wrote: >'Twas brillig, and Lennart Poettering at 16/10/12 01:18 did gyre and

[systemd-devel] [PATCH] systemctl: append .service when unit does not have valid suffix

2012-10-16 Thread Lukas Nykryn
systemctl status a and systemctl status a.service lead to same output but systemctl status a.b and systemctl status a.b.service do not. --- src/shared/unit-name.c |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/src/shared/unit-name.c b/src/shared/unit-name.c index cfe

Re: [systemd-devel] [PATCH 2/2] core/swap.c: Do not add Before=swap.target to swap units.

2012-10-16 Thread Thomas Bächler
Am 16.10.2012 02:22, schrieb Lennart Poettering: > On Sat, 06.10.12 01:11, Thomas Bächler (tho...@archlinux.org) wrote: > >> The fstab generator adds Before=swap.target by default, and when creating >> a custom .swap unit, you can also add Before=swap.target to the unit. >> >> However, it is impos

Re: [systemd-devel] [PATCH 1/2] core: Refuse to run a user instance when the system hasn't been booted with systemd.

2012-10-16 Thread Colin Guthrie
'Twas brillig, and Lennart Poettering at 16/10/12 01:18 did gyre and gimble: > On Sat, 06.10.12 01:11, Thomas Bächler (tho...@archlinux.org) wrote: > >> Running as a user instance won't work at all if systemd isn't running as >> system >> manager, so refuse to start in that case. > > Applied. Th