Re: [systemd-devel] systemd-fstab-generator and multiple mounts to same mount point

2013-01-03 Thread Peeters Simon
2013/1/3 Lennart Poettering : > ... > Just changing the generator to output alternate .mount units if a clash > happens won't solve your issue btw, because the mount path will still > have to be in sync with the mount unit name. And since you cannot have > two files with the same name in a director

Re: [systemd-devel] systemd-fstab-generator and multiple mounts to same mount point

2013-01-03 Thread John Lane
On 03/01/13 19:50, Lennart Poettering wrote: On Wed, 02.01.13 12:44, John Lane (syst...@jelmail.com) wrote: I realise I can work around the problem (that's what I am doing right now) but I want the mounts to be done in that way (one over the other). As such an /etc/fstab worked fine before sys

Re: [systemd-devel] [PATCH] localectl: support systems without locale-archive

2013-01-03 Thread Lennart Poettering
On Mon, 31.12.12 18:05, Giovanni Campagna (scampa.giova...@gmail.com) wrote: > From: Giovanni Campagna > > Not all systems ships with locales inside /usr/lib/locale-archive, some > prefer to have locale data as individual subdirectories of /usr/lib/locale. > (A notable example of this is OpenEmb

Re: [systemd-devel] [PATCH] Added globbing support to EnvironmentFile

2013-01-03 Thread Lennart Poettering
On Wed, 02.01.13 13:41, Pekka Lundstrom (pekka.lundst...@jollamobile.com) wrote: > This patch allows globbing to be used with EnvironmentFile option. > Example: > EnvironmentFile=/etc/foo.d/*.conf Thanks! Applied! > > t. Pekka > --- > Signed-off-by: Pekka Lundstrom > > --- > man/systemd.exec.

Re: [systemd-devel] [PATCH 1/2] logind: Capability of making seats without framebuffer devices

2013-01-03 Thread Lennart Poettering
On Thu, 27.12.12 22:54, Oleg Samarin (osamari...@gmail.com) wrote: > В Пн., 24/12/2012 в 13:08 +0100, Lennart Poettering пишет: > > On Thu, 20.12.12 22:08, Oleg Samarin (osamari...@gmail.com) wrote: > > > > Could you please split these patches up? The "seat-master" bit looks > > straightforward t

Re: [systemd-devel] [PATCH] systemctl: add is-failed

2013-01-03 Thread Lennart Poettering
On Thu, 27.12.12 19:28, Thomas H.P. Andersen (pho...@gmail.com) wrote: > I grabbed this one from the todo list. Most of the functionality was > already there for is-active. I just needed to make check_one_unit take > the states to check for as an argument instead of the hardcoded > "active" and "r

Re: [systemd-devel] [PATCH] man: fix parameter in systemd-fstab-generator(8)

2013-01-03 Thread Lennart Poettering
On Sat, 29.12.12 02:06, Michał Bartoszkiewicz (mbartoszkiew...@gmail.com) wrote: > There is no parameter named luks.fstab. Thanks! Fixed! > --- > man/systemd-fstab-generator.xml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/man/systemd-fstab-generator.xml b/man/system

Re: [systemd-devel] [PATCH] localed: create /etc/X11/xorg.conf.d if needed

2013-01-03 Thread Lennart Poettering
On Fri, 28.12.12 22:40, Michał Bartoszkiewicz (mbartoszkiew...@gmail.com) wrote: Thanks! Applied! > Use mkdir_p_label instead of mkdir_parents_label, so that the final > directory component is created too. > --- > src/locale/localed.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [systemd-devel] hardware/system keys/buttons

2013-01-03 Thread Lennart Poettering
On Wed, 26.12.12 16:21, Tormen (quickh...@gmail.com) wrote: > Hi, > > I would like to trigger events on my notebook hardware keys and > independent of any X environment! > (very useful to do all sorts of things when something went south in > your graphical environment) > > (a) systemd is alr

Re: [systemd-devel] [PATCH] [RFC]logind: set locale in user sessions

2013-01-03 Thread Lennart Poettering
On Thu, 03.01.13 17:11, Bill Nottingham (nott...@redhat.com) wrote: > > I am tempted to just merge the patch. The discussion on xdg-devel can > > happen after we commited the code. In fact, moving that to PAM upstream > > can happen at a later point too, if it is desirable... > > > > Also, given

Re: [systemd-devel] [PATCH] [RFC]logind: set locale in user sessions

2013-01-03 Thread Lennart Poettering
On Thu, 03.01.13 22:25, Tollef Fog Heen (tfh...@err.no) wrote: > > ]] Lennart Poettering > > > a) This really sounds like something to discuss on xdg-devel. This > >probably deserves adoption by the desktop environments, much like > >.config/user-dirs.dirs. i.e. GNOME should really writ

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Lennart Poettering
On Thu, 03.01.13 23:21, Stef Bon (stef...@gmail.com) wrote: > Yes, thanks a lot. I've read it, understood, maybe this whole locking thing > should be replaced with a better approach. First you mention in the first > blog entry: > > "Mandatory locking is available too. It's based on the POSIX lock

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Stef Bon
2013/1/3 Kay Sievers > > FWIW, adding poll() support would look like something like this: > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=66d7dd518ae413a383ab2c6c263cc30617329842 > > Kay > Thanks a lot. I will try to write a patch with it, although the way linux h

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Stef Bon
Yes, thanks a lot. I've read it, understood, maybe this whole locking thing should be replaced with a better approach. First you mention in the first blog entry: "Mandatory locking is available too. It's based on the POSIX locking API but not portable in itself. It's dangerous business and should

Re: [systemd-devel] [PATCH] [RFC]logind: set locale in user sessions

2013-01-03 Thread Bill Nottingham
Lennart Poettering (lenn...@poettering.net) said: > Hmm, I like this approach. Ther actually has been a TODO list item about > this for a while. However, a few questions: > > a) This really sounds like something to discuss on xdg-devel. This >probably deserves adoption by the desktop environm

Re: [systemd-devel] [PATCH] use static_assert instead of assert_cc

2013-01-03 Thread Lennart Poettering
On Thu, 03.01.13 22:47, Thomas H.P. Andersen (pho...@gmail.com) wrote: > > assert_cc() for simple expressions where the expression is readable > > enough as is. > > > > assert_static() for complex expressions where it is worth specifying a > > human readable string. > > > > I hope this makes sense

Re: [systemd-devel] [PATCH] Fix file descriptor leak on error

2013-01-03 Thread Lennart Poettering
On Tue, 25.12.12 13:46, Thomas Jarosch (thomas.jaro...@intra2net.com) wrote: > Detected by cppcheck > > Signed-off-by: Thomas Jarosch > --- > src/tmpfiles/tmpfiles.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c >

Re: [systemd-devel] [PATCH] use static_assert instead of assert_cc

2013-01-03 Thread Thomas H.P. Andersen
On Thu, Jan 3, 2013 at 10:34 PM, Lennart Poettering wrote: > On Sat, 29.12.12 02:10, Thomas H.P. Andersen (pho...@gmail.com) wrote: > >> Another item from the todo > > Heya! > > Hmm, so I commited a patch for using assert_static() a few days before > you did your patches but unfortunately never co

Re: [systemd-devel] [PATCH] use static_assert instead of assert_cc

2013-01-03 Thread Lennart Poettering
On Thu, 03.01.13 22:34, Lennart Poettering (lenn...@poettering.net) wrote: > > On Sat, 29.12.12 02:10, Thomas H.P. Andersen (pho...@gmail.com) wrote: > > > Another item from the todo > > Heya! > > Hmm, so I commited a patch for using assert_static() a few days before > you did your patches but

Re: [systemd-devel] systemd-readahead-replay: open(/etc/pam.d/postlogin) failed: Too many levels of symbolic links

2013-01-03 Thread Lennart Poettering
On Thu, 27.12.12 16:00, Reindl Harald (h.rei...@thelounge.net) wrote: > something goes wrong here at boot > > systemd-44-23.fc17.x86_64 > kernel-3.6.11-1.fc17.x86_64 > pam-1.1.5-7.fc17.x86_64 > > [root@srv-rhsoft:~]$ dmesg | grep links > systemd-readahead-replay[368]: open(/etc/pam.d/postlogin)

Re: [systemd-devel] [PATCH] use static_assert instead of assert_cc

2013-01-03 Thread Lennart Poettering
On Sat, 29.12.12 02:10, Thomas H.P. Andersen (pho...@gmail.com) wrote: > Another item from the todo Heya! Hmm, so I commited a patch for using assert_static() a few days before you did your patches but unfortunately never commited it. It works a bit differently from your patch, i.e. keeps asser

Re: [systemd-devel] [PATCH] [RFC]logind: set locale in user sessions

2013-01-03 Thread Tollef Fog Heen
]] Lennart Poettering > a) This really sounds like something to discuss on xdg-devel. This >probably deserves adoption by the desktop environments, much like >.config/user-dirs.dirs. i.e. GNOME should really write that file when >the user reconfigures the locale settings. > > b) Mayb

Re: [systemd-devel] multiple instance template variable

2013-01-03 Thread Lennart Poettering
On Thu, 03.01.13 21:23, Thomas Schreiber (t...@rizu.mu) wrote: > Hi, > > I've followed this example with success: http://superuser.com/a/393429/77086 > > However, I am trying to do one more variable substitution by altering the > path to the executable used by ExecStart: > > # cat /usr/lib/syst

Re: [systemd-devel] [PATCH] [RFC]logind: set locale in user sessions

2013-01-03 Thread Lennart Poettering
On Wed, 02.01.13 12:46, Tom Gundersen (t...@jklm.no) wrote: > Changes the pam module to now set the locale for user-sessions, similarly to > what is done system-wide in PID1. > > The logic is: the kernel command-line takes precedence, then > XDG_CONFIG_HOME/locale.conf, then /etc/locale.conf and

Re: [systemd-devel] sometimes systemd takes a very long time to restart service

2013-01-03 Thread JB
Zbigniew Jędrzejewski-Szmek wrote: On Wed, Jan 02, 2013 at 02:28:19AM -0700, JB wrote: Andrey Borzenkov wrote: В Tue, 01 Jan 2013 23:37:56 -0700 JB пишет: Andrey Borzenkov wrote: В Tue, 01 Jan 2013 18:52:38 -0700 JB пишет: Thanks! I'll try and it may wor

[systemd-devel] multiple instance template variable

2013-01-03 Thread Thomas Schreiber
Hi, I've followed this example with success: http://superuser.com/a/393429/77086 However, I am trying to do one more variable substitution by altering the path to the executable used by ExecStart: # cat /usr/lib/systemd/system/uwsgi@.service [Unit] Description=uWSGI service for %i After=syslog.t

Re: [systemd-devel] systemd-fstab-generator and multiple mounts to same mount point

2013-01-03 Thread Lennart Poettering
On Wed, 02.01.13 12:44, John Lane (syst...@jelmail.com) wrote: > I realise I can work around the problem (that's what I am doing > right now) but I want the mounts to be done in that way (one over > the other). > > As such an /etc/fstab worked fine before systemd it would be good if > it continue

Re: [systemd-devel] systemd-fstab-generator and multiple mounts to same mount point

2013-01-03 Thread Lennart Poettering
On Wed, 02.01.13 15:25, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > On Wed, Jan 02, 2013 at 12:44:10PM +, John Lane wrote: > > On 02/01/13 12:15, Andrey Borzenkov wrote: > > >В Wed, 02 Jan 2013 12:01:41 + > > >John Lane пишет: > > > > > >>Hello, > > >> > > >>I have a configur

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Lennart Poettering
On Thu, 03.01.13 20:06, Stef Bon (stef...@gmail.com) wrote: > Well, I'm working on notifyfs, a fuse fs which is a cache for gui clients > and a filesystem event notifier. It uses inotify on linux to notify clients > about changes. I want to be complete and add information about locks as > well (ne

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Stef Bon
Well, I'm working on notifyfs, a fuse fs which is a cache for gui clients and a filesystem event notifier. It uses inotify on linux to notify clients about changes. I want to be complete and add information about locks as well (new, changed and removed). On the localhost this requires monitoring th

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Kay Sievers
On Thu, Jan 3, 2013 at 6:38 PM, Lennart Poettering wrote: > On Wed, 02.01.13 22:59, Stef Bon (stef...@gmail.com) wrote: >> sorry for the offtopic question here, but I do not know a better place for >> it. >> >> I'm building a lockmonitor. I thought that would be just as easy as with >> the /proc/

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Lennart Poettering
On Wed, 02.01.13 22:59, Stef Bon (stef...@gmail.com) wrote: > Hi, > > sorry for the offtopic question here, but I do not know a better place for > it. > > I'm building a lockmonitor. I thought that would be just as easy as with > the /proc/self/mountinfo "file". The poll-ability of /proc/self/m

Re: [systemd-devel] systemd-fstab-generator and multiple mounts to same mount point

2013-01-03 Thread John Lane
On 03/01/13 16:40, Tom Gundersen wrote: On Thu, Jan 3, 2013 at 5:16 PM, John Lane wrote: Hello. Here is a patch to allow systemd to handle overmounts defined in /etc/fstab. https://raw.github.com/johnlane/archlinux-systemd/master/fstab-overmount.patch Please use spaces rather than tabs ;-) I

Re: [systemd-devel] systemd-fstab-generator and multiple mounts to same mount point

2013-01-03 Thread Tom Gundersen
On Thu, Jan 3, 2013 at 5:16 PM, John Lane wrote: > Hello. Here is a patch to allow systemd to handle overmounts defined in > /etc/fstab. > > https://raw.github.com/johnlane/archlinux-systemd/master/fstab-overmount.patch Please use spaces rather than tabs ;-) > It appends a suffix (an underscore

Re: [systemd-devel] systemd-fstab-generator and multiple mounts to same mount point

2013-01-03 Thread John Lane
On 02/01/13 20:21, John Lane wrote: On 02/01/13 14:25, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Jan 02, 2013 at 12:44:10PM +, John Lane wrote: On 02/01/13 12:15, Andrey Borzenkov wrote: В Wed, 02 Jan 2013 12:01:41 + John Lane пишет: Hello, I have a configuration where a filesyste