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 syst...@jelmail.com пишет: Hello, I have a

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 syst...@jelmail.com 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

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 syst...@jelmail.com 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

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/mountinfo

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

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 (new,

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 syst...@jelmail.com пишет: Hello, I have a

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 continued to

[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

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 gene...@itpsg.com пишет: Andrey Borzenkov wrote: В Tue, 01 Jan 2013 18:52:38 -0700 JB gene...@itpsg.com пишет:

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] 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

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) Maybe

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

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) failed:

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] [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 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] [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 thomas.jaro...@intra2net.com --- src/tmpfiles/tmpfiles.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tmpfiles/tmpfiles.c

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? yeah,

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

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] Offtopic question.

2013-01-03 Thread Stef Bon
2013/1/3 Kay Sievers k...@vrfy.org 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

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 locking

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 write that

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 that this

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 already

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(-) diff

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

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

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 to me, and

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 pekka.lundstrom at jollamobile.com

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 gcampa...@src.gnome.org 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

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

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

2013-01-03 Thread Peeters Simon
2013/1/3 Lennart Poettering lenn...@poettering.net: ... 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