[systemd-devel] How to properly start user session from DM?

2013-03-06 Thread Peter Lemenkov
Hello All! I'm trying to properly start a user's session from systemd. Actually I already did that and I just want to improve my experience further. Here is my story. I'm using XDM which is cool and simple DM. When someone submits proper login and password it loads "/etc/X11/xdm/xdm-config" file,

Re: [systemd-devel] How to properly start user session from DM?

2013-03-06 Thread Simon McVittie
On 06/03/13 10:17, Peter Lemenkov wrote: > I'm trying to replace "/usr/bin/systemd --user" with something which > looks more proper - with "/usr/bin/systemctl --user start user@`id -n > -u`.service" but it logs out almost immediately. xdm (like other display managers - gdm/kdm/lightdm/etc.) assum

Re: [systemd-devel] syslog CEE support for the journal

2013-03-06 Thread Lennart Poettering
On Tue, 05.03.13 17:25, David Strauss (da...@davidstrauss.net) wrote: > Has CEE seen any widespread deployment? It would be straightforward to > add the following to the journal: > > * Optional conversion of non-binary fields to CEE for forwarding to syslog > * Conversion of CEE to journal fiel

Re: [systemd-devel] Google Summer of Code

2013-03-06 Thread Lennart Poettering
On Tue, 05.03.13 18:06, David Strauss (da...@davidstrauss.net) wrote: > Are there any plans to propose projects for GSoC 2013? I've mentored > before on behalf of Drupal. I'd like it if we tried to get accepted as GSoC mentor project, but I personally doubt I would have the time to mentor this.

Re: [systemd-devel] [PATCH] mount and initialize Smack

2013-03-06 Thread Lennart Poettering
On Tue, 05.03.13 15:24, Nathaniel Chen (nathaniel.c...@intel.com) wrote: Heya, A few comments on top of what Zbigniew already pointed out. > + smack = fopen("/sys/fs/smackfs/load2", "w"); Not that it would matter here, but out of principle we generally use "we" instead of "w"... > + if

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

2013-03-06 Thread Lennart Poettering
On Tue, 05.03.13 21:24, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: > > On 05/03/13 21:03, Lennart Poettering wrote: > > My general suggestion is that applications should generally die if their > > display goes away (libX11 already enforces this...). > > Right, but that only happens f

Re: [systemd-devel] How to properly start user session from DM?

2013-03-06 Thread Lennart Poettering
On Wed, 06.03.13 13:17, Peter Lemenkov (lemen...@gmail.com) wrote: > Hello All! > I'm trying to properly start a user's session from systemd. Actually I > already did that and I just want to improve my experience further. So, in general, there is no out-of-the-box upstream way to do this, but wit

Re: [systemd-devel] Adding journal support to GNOME's Log Viewer

2013-03-06 Thread Lennart Poettering
On Tue, 05.03.13 17:17, David Strauss (da...@davidstrauss.net) wrote: > Log Viewer (gnome-system-log) is a basic, graphical log file viewer > bundled with GNOME desktops and useful for anyone with GTK+. > > Is there any interest in adding (optional) journal support to this > program? Are there ot

Re: [systemd-devel] Secure Linux Containers. I have masked down the systemd starting most daemons within containers.

2013-03-06 Thread Lennart Poettering
On Thu, 14.02.13 07:16, Daniel J Walsh (dwa...@redhat.com) wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Welcome to Fedora 19 (Rawhide)! > > Set hostname to . > /dev/mapper/control: mknod failed: Operation not permitted > Failure to communicate with kernel device-mapper driver

Re: [systemd-devel] [PATCH] run systemd-ask-password-console.service after systemd-vconsole-setup.service

2013-03-06 Thread Lennart Poettering
On Thu, 14.02.13 12:52, har...@redhat.com (har...@redhat.com) wrote: Sounds sensible. Applied. > From: Harald Hoyer > > --- > units/systemd-ask-password-console.service.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/units/systemd-ask-password-console.service.in >

Re: [systemd-devel] [PATCH] readahead: Add savedir option

2013-03-06 Thread Lennart Poettering
On Thu, 14.02.13 17:47, Seunghun Pi (sh...@samsung.com) wrote: > From: Byung-Soo Kim > > From: Byung-Soo Kim > > In case of root file system mounted in read-only mode, > the collected data cannot be stored. > Then add code to specify directory path of collected data as RW position. > With --sa

Re: [systemd-devel] [PATCH] units: Make getty@.service install rule generic.

2013-03-06 Thread Lennart Poettering
On Wed, 13.02.13 11:01, Thomas Bächler (tho...@archlinux.org) wrote: > > The same could be said of any templated unit with a WantedBy= section I > > guess. > > > > One idea off the top of my head is to have a NoInstanceAlias= directive, > > but adding a new verb here seems fugly. > > I actually

Re: [systemd-devel] [PATCH 1/2] service: really stop watchdog timer when stopping

2013-03-06 Thread Lennart Poettering
On Wed, 23.01.13 14:12, Michael Olbrich (m.olbr...@pengutronix.de) wrote: > For services without ExecStop= the state SERVICE_STOP is never entered. as > a result the watchdog timer is not stopped and the service is restarted (if > it is configuered to restart). > Stopping the watchdog timer for SE

[systemd-devel] Unmerged patches

2013-03-06 Thread Lennart Poettering
heya, I think I mostly caught up with all unmerged patches on the ML. (Well, with the exception of Oleksii's two outstanding patches, which touch so much stuff, that I don't want to hurry this. Sorry, Oleksii, for the delay!) If you have posted a patch in the past months, and it still is unreview

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

2013-03-06 Thread Mathieu Bridon
On Wednesday, March 06, 2013 09:40 PM, Lennart Poettering wrote: On Tue, 05.03.13 21:24, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: (Whenever there's more than one local X11 display, gdm itself certainly needs to be able to put a small GNOME session on behalf of the special-purpose '

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

2013-03-06 Thread Mantas Mikulėnas
On Wed, Mar 6, 2013 at 4:47 PM, Mathieu Bridon wrote: > On Wednesday, March 06, 2013 09:40 PM, Lennart Poettering wrote: >> Yeah, gdm is special, but as mentioned the right way to handle this is >> probably to have dynamic users for this, which can be allocated, which >> can't write to disk, > > D

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

2013-03-06 Thread Simon McVittie
On 05/03/13 21:23, Lennart Poettering wrote: > Kay actually wants to get rid of > the session bus entirely. My own idea was to use it only for gdm to > support the multi-seat case, where the same gdm user might need to run > multiple gdm sessions in parallel, one for each display. However, that > i

Re: [systemd-devel] [RFC][PATCH] main: ISOLATE rather than REPLACE default.target

2013-03-06 Thread Lennart Poettering
On Tue, 05.03.13 19:29, Lennart Poettering (lenn...@poettering.net) wrote: > > On Tue, 05.03.13 15:56, Tom Gundersen (t...@jklm.no) wrote: > > > This allows switch-root to work correctly if a unit is active both before > > and > > after the switch-root, but its dependencies change. Before the p

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

2013-03-06 Thread Lennart Poettering
On Wed, 06.03.13 15:12, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: > On 05/03/13 21:23, Lennart Poettering wrote: > > Kay actually wants to get rid of > > the session bus entirely. My own idea was to use it only for gdm to > > support the multi-seat case, where the same gdm user might

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

2013-03-06 Thread Simon McVittie
On 06/03/13 15:55, Lennart Poettering wrote: >> Terminology: do we have a good piece of jargon for the thing represented >> by a login1.User and an XDG_RUNTIME_DIR? > > logind tracks a "state" enum for each user. It is either offline, > lingerung, online, active, closing. [...] > So, following thi

[systemd-devel] [PATCH] bootchart: add parameter "-C" to expand process names to the full cmdline

2013-03-06 Thread harald
From: Harald Hoyer --- src/bootchart/bootchart.c | 7 ++- src/bootchart/bootchart.h | 3 ++- src/bootchart/log.c | 39 +-- src/bootchart/svg.c | 37 + 4 files changed, 74 insertions(+), 12 deletions(-) dif

Re: [systemd-devel] [PATCH] bootchart: add parameter "-C" to expand process names to the full cmdline

2013-03-06 Thread Harald Hoyer
an example see: http://harald.fedorapeople.org/downloads/bootchart-20130306-1223.svg ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] bootchart: add parameter "-C" to expand process names to the full cmdline

2013-03-06 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Mar 06, 2013 at 06:02:43PM +0100, har...@redhat.com wrote: > From: Harald Hoyer > > --- > src/bootchart/bootchart.c | 7 ++- > src/bootchart/bootchart.h | 3 ++- > src/bootchart/log.c | 39 +-- > src/bootchart/svg.c | 37 +

Re: [systemd-devel] [PATCH] bootchart: add parameter "-C" to expand process names to the full cmdline

2013-03-06 Thread Harald Hoyer
On Wed, Mar 6, 2013 at 6:32 PM, Zbigniew Jędrzejewski-Szmek wrote: > Shouldn't those two identical blocks of code be a function? true > Also, why not use _cleanup_close_ for the fd? Oh :) bootchart could use a lot of cleanup :) > > From the other mail: > """ > this is needed, because we can't

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

2013-03-06 Thread Lennart Poettering
On Wed, 06.03.13 16:26, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: > > logind tracks a "state" enum for each user. It is either offline, > > lingerung, online, active, closing. > [...] > > So, following this terminology I'd just call the user "online" in the > > context you were asking

Re: [systemd-devel] [PATCH] readahead: Add savedir option

2013-03-06 Thread Cristian Rodríguez
El 06/03/13 11:19, Lennart Poettering escribió: Anyway, before we do something about this I'd really like to figure out how you solve the "must be on root, but root is read-only" issue? Other than the chicken-egg problem, I am not positive about allowing a distribution-specific location for t

Re: [systemd-devel] [PATCH] bootchart: add parameter "-C" to expand process names to the full cmdline

2013-03-06 Thread Kok, Auke-jan H
On Wed, Mar 6, 2013 at 9:48 AM, Harald Hoyer wrote: > On Wed, Mar 6, 2013 at 6:32 PM, Zbigniew Jędrzejewski-Szmek > wrote: >> Shouldn't those two identical blocks of code be a function? > > true > >> Also, why not use _cleanup_close_ for the fd? > > Oh :) bootchart could use a lot of cleanup :)

[systemd-devel] problem with seeking in the journal

2013-03-06 Thread Zbigniew Jędrzejewski-Szmek
Hi Lennart, I think I finally found a reproducer for the problem with journalctl jumping to the beginning. I can't find the bug reports now, but there certainly were some. I was trying to implement polling the journal in python, which wasn't working as expected, and then I modified your example fr

[systemd-devel] [PATCH 1/3] bootchart: add parameter "-C" to expand process names to the full cmdline

2013-03-06 Thread harald
From: Harald Hoyer --- src/bootchart/bootchart.c | 7 ++- src/bootchart/bootchart.h | 3 ++- src/bootchart/log.c | 33 +++-- src/bootchart/svg.c | 39 +-- 4 files changed, 72 insertions(+), 10 deletions(-) diff --

[systemd-devel] [PATCH 2/3] bootchart: rename global len to samples_len

2013-03-06 Thread harald
From: Harald Hoyer --- src/bootchart/bootchart.c | 32 src/bootchart/bootchart.h | 2 +- src/bootchart/log.c | 2 +- src/bootchart/svg.c | 4 ++-- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/bootchart/bootchart.c b/src/boot

[systemd-devel] [PATCH 3/3] bootchart: use _cleanup_fclose_

2013-03-06 Thread harald
From: Harald Hoyer --- src/bootchart/log.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/bootchart/log.c b/src/bootchart/log.c index 43999f2..ccec03f 100644 --- a/src/bootchart/log.c +++ b/src/bootchart/log.c @@ -57,7 +57,7 @@ double gettime_ns(void) voi