[systemd-devel] [PATCH] shell-completion: Make bash completion show user units if --user is entered.

2013-04-08 Thread Gary van der Merwe
This patch makes the bash shell-completion show user units if --user is all ready entered in the command line. I really want to do the same for the zsh completion (as this is what I use,) but I got horribaly stuck. --- shell-completion/bash/systemctl | 9 - 1 file changed, 8

Re: [systemd-devel] UTS namespace

2013-04-08 Thread Lennart Poettering
On Mon, 08.04.13 13:34, Luca Giuzzi (luca.giu...@gmail.com) wrote: Dear List, I need to run some services in a private uts namespace, even if they do not require full isolation. I have seen that PrivateNetwork is available (per systemd.exec), but it not what I want; likewise systemd-nspawn

Re: [systemd-devel] Problem converting an rc script

2013-04-08 Thread Mantas Mikulėnas
On Mon, Apr 8, 2013 at 3:06 PM, John Lane syst...@jelmail.com wrote: On 07/04/13 20:45, Mantas Mikulėnas wrote: I use rbenv to manage different Ruby versions, and while it probably doesn't offer the same functionality as rvm, it's also much simpler to use: it only needs rbenv-path/shims to be

Re: [systemd-devel] /var/log/journal/

2013-04-08 Thread Lennart Poettering
On Fri, 05.04.13 22:02, Reindl Harald (h.rei...@thelounge.net) wrote: We have decided to turn on persistancy in F19, and that's done via %post hooks in the RPM. If you want to turn this off, set Storage=none or Storage=volatile in journald.conf great - does F17 and F18 understand

Re: [systemd-devel] Problem converting an rc script

2013-04-08 Thread John Lane
On 07/04/13 20:45, Mantas Mikulėnas wrote: On Sun, Apr 7, 2013 at 10:21 PM, John Lane syst...@jelmail.com wrote: I have been trying to replace an rc script with a systemd unit file. It is for an rvm (ruby version manager) environment and it starts a documentation web server. I tried to create a

Re: [systemd-devel] /var/log/journal/

2013-04-08 Thread Reindl Harald
Am 08.04.2013 14:09, schrieb Lennart Poettering: On Fri, 05.04.13 22:02, Reindl Harald (h.rei...@thelounge.net) wrote: We have decided to turn on persistancy in F19, and that's done via %post hooks in the RPM. If you want to turn this off, set Storage=none or Storage=volatile in

Re: [systemd-devel] Possible race condition for setting cgroup sticky bit

2013-04-08 Thread Lennart Poettering
On Fri, 05.04.13 22:04, Anders Olofsson (anders.olofs...@axis.com) wrote: I'm seeing a problem with a service sometimes failing to start due to a missing cgroup. After some debugging I've made the following observations: After exec_spawn() forks, the child will set the sticky bit

[systemd-devel] [PATCH] Do not serialize environment, when switching root

2013-04-08 Thread harald
From: Harald Hoyer har...@redhat.com When switching root, i.e. LANG can be set to the locale of the initramfs or C, if it was unset. When systemd deserializes LANG in the real root this would overwrite the setting previously gathered by locale_set(). To reproduce, boot with an initramfs without

Re: [systemd-devel] [PATCH] shell-completion: Make bash completion show user units if --user is entered.

2013-04-08 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Apr 08, 2013 at 10:19:00AM +0200, Gary van der Merwe wrote: This patch makes the bash shell-completion show user units if --user is all ready entered in the command line. I really want to do the same for the zsh completion (as this is what I use,) but I got horribaly stuck. Hm, see

Re: [systemd-devel] [ANNOUNCE] systemd 200

2013-04-08 Thread Lennart Poettering
On Fri, 05.04.13 23:33, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: I had a go at debugging this... I think that the is the return of the va_arg and undefined aps horror. The result is that in test-bus-marshall.c:133 and test-bus-marshall.c:139 (at least), some of the output

Re: [systemd-devel] [PATCH V2] Do not serialize environment, when switching root

2013-04-08 Thread Lennart Poettering
On Mon, 08.04.13 14:33, har...@redhat.com (har...@redhat.com) wrote: From: Harald Hoyer har...@redhat.com When switching root, i.e. LANG can be set to the locale of the initramfs or C, if it was unset. When systemd deserializes LANG in the real root this would overwrite the setting

Re: [systemd-devel] [PATCH V2] Do not serialize environment, when switching root

2013-04-08 Thread Harald Hoyer
Am 08.04.2013 14:42, schrieb Lennart Poettering: On Mon, 08.04.13 14:33, har...@redhat.com (har...@redhat.com) wrote: From: Harald Hoyer har...@redhat.com When switching root, i.e. LANG can be set to the locale of the initramfs or C, if it was unset. When systemd deserializes LANG in the

Re: [systemd-devel] Add ARCH parameter to /etc/os-release

2013-04-08 Thread Lennart Poettering
On Sat, 06.04.13 04:50, Askar Safin (safinas...@mail.ru) wrote: Please standardize and recommend new /etc/os-release parameter: ARCH. It will content architecture of this distro (i. e. i386, x86_64, ...). There are some cases when this value differs from current kernel architecture (as

Re: [systemd-devel] Shared root fs by default

2013-04-08 Thread Tvrtko Ursulin
On Friday 05 April 2013 18:42:20 Lennart Poettering wrote: On Fri, 05.04.13 17:27, Tvrtko Ursulin (tvrtko.ursu...@onelan.co.uk) wrote: On Friday 05 April 2013 18:23:35 Lennart Poettering wrote: On Fri, 05.04.13 17:19, Tvrtko Ursulin (tvrtko.ursu...@onelan.co.uk) wrote: Hmm, does this

Re: [systemd-devel] [PATCH] cgtop: Add cpu time opt and become stdout sensitive

2013-04-08 Thread Lennart Poettering
On Sun, 07.04.13 17:23, Umut Tezduyar (u...@tezduyar.com) wrote: Hi, I also agree that it makes most sense to have it formatted by format_timespan. I don't think we should have 2 different outputs (if on tty). I think it will only be confusing. If no one gets to it before me, I will have

Re: [systemd-devel] [PATCH] RFC: util: Avoid memory allocations for formatting paths

2013-04-08 Thread Lennart Poettering
On Sat, 06.04.13 10:05, Holger Hans Peter Freyther (hol...@freyther.de) wrote: From: Holger Hans Peter Freyther hol...@moiji-mobile.com Avoid memory allocations to construct the path for files in the procfs. The procfs paths are way shorter than the PATH_MAX so we can use snprintf on a

Re: [systemd-devel] [PATCH 1/2] RFC: journald: Do not always record _AUDIT_SESSION and _AUDIT_LOGINUID

2013-04-08 Thread Lennart Poettering
On Sat, 06.04.13 10:20, Holger Hans Peter Freyther (hol...@freyther.de) wrote: When systemd was compiled without audit support, do not collect the audit session and loginuid in the journal. This is saving a couple of syscalls and memory allocations per log message. Looks good! Applied!

[systemd-devel] RFC: should try-restart be a no-op or restart when stop is pending

2013-04-08 Thread Frederic Crozat
Hi all, in one of opened bug reports against systemd ( https://bugzilla.novell.com/show_bug.cgi?id=812541 ), I found a questionable behavior regarding try-restart: when a stop call is pending (for instance reboot / shutdown / etc..), a try-restart call will act as noop or as restart, depending

Re: [systemd-devel] [PATCH 2/2] RFC: journald: Do not dynamically allocate _UID/_GID/_PID strings

2013-04-08 Thread Lennart Poettering
On Sat, 06.04.13 10:20, Holger Hans Peter Freyther (hol...@freyther.de) wrote: Avoid the dynamic allocation for the _UID, _GID, and _PID strings. The maximum size of the string can be determined at compile time. The code has only been compile tested. Applied this one too. Made three more

Re: [systemd-devel] Shared root fs by default

2013-04-08 Thread Lennart Poettering
On Mon, 08.04.13 14:08, Tvrtko Ursulin (tvrtko.ursu...@onelan.co.uk) wrote: Well, but in your example you unmounted a bind mount with a child, and that resulted in the unmounting of the child in the source mount, too -- even though you never asked for that child mount to be unmounted.

Re: [systemd-devel] Add ARCH parameter to /etc/os-release

2013-04-08 Thread Tollef Fog Heen
]] Lennart Poettering c) you can convert a 32bit debian userspace into a 64bit debian userspace with just a bit of apt package installation? No, you can run multiple ABIs at the same time. Limiting yourself to «32-bit» and «64-bit» is silly, you can transparently run, say, amd64, i386 and

[systemd-devel] bus: suggestion for reading trough variants

2013-04-08 Thread Peeters Simon
hey, While experimenting a bit with the really nice api of libsystemd-bus (seriously, I love it), I came across an idea that would probably make using the library even easier. The idea is to be able to read trough a variant using sd_bus_message_read() f.ex you get a message with signature sv

Re: [systemd-devel] Shared root fs by default

2013-04-08 Thread Tvrtko Ursulin
On Monday 08 April 2013 15:57:10 Lennart Poettering wrote: On Mon, 08.04.13 14:08, Tvrtko Ursulin (tvrtko.ursu...@onelan.co.uk) wrote: I am not sure, depends if you think the behaviour is correct or not. Either way, I would say that the systemd change to make root rshared by default was a

Re: [systemd-devel] Possible race condition for setting cgroup sticky bit

2013-04-08 Thread Anders Olofsson
I'm seeing a problem with a service sometimes failing to start due to a missing cgroup. After some debugging I've made the following observations: After exec_spawn() forks, the child will set the sticky bit for the cgroup (in cg_set_task_access) but sometimes, the cgroup is

Re: [systemd-devel] Duplicate assignment of kernel/sysrq

2013-04-08 Thread Lennart Poettering
On Fri, 05.04.13 22:07, Reindl Harald (h.rei...@thelounge.net) wrote: Am 05.04.2013 18:51, schrieb Lennart Poettering: On Tue, 02.04.13 01:53, Reindl Harald (h.rei...@thelounge.net) wrote: Am 02.04.2013 01:28, schrieb Tom Gundersen: That said, the fact that we are currently parsing

Re: [systemd-devel] bus: suggestion for reading trough variants

2013-04-08 Thread Peeters Simon
what I would like to be able to do is something like this: sd_bus_message_read(m, sv+s, first, second); oops, while reading the code i found out that this is already possible and that the syntax is sd_bus_message_read(m, sv, first, s, second); so thank you very much :)

Re: [systemd-devel] bus: suggestion for reading trough variants

2013-04-08 Thread Lennart Poettering
On Mon, 08.04.13 16:22, Peeters Simon (peeters.si...@gmail.com) wrote: hey, While experimenting a bit with the really nice api of libsystemd-bus (seriously, I love it), I came across an idea that would probably make using the library even easier. The idea is to be able to read trough a

Re: [systemd-devel] [PATCH 0/2] RFC for avoid dynamic allocation in journald

2013-04-08 Thread Holger Freyther
Holger Hans Peter Freyther holger at freyther.de writes: The following two patches are compile tested only. The first one is to avoid work when systemd is compiled without audit support. The second is starting to remove dynamic allocations from the dispatch_message_real method. I just

Re: [systemd-devel] [opensuse-kernel] New mount restriction?

2013-04-08 Thread Andrey Borzenkov
В Mon, 08 Apr 2013 11:37:14 -0400 Jeff Mahoney je...@suse.com пишет: On 4/8/13 8:49 AM, Tetsuo Handa wrote: Hello. It seems to me that mount --move /tmp/old/ /tmp/new/ is not working on opensuse 12.3 kernel. linux:~ # uname -r 3.7.10-1.1-desktop linux:~ # mkdir -p /tmp/old/

[systemd-devel] [PATCH] dbus-manager: fix variable type introspection

2013-04-08 Thread Ronny Chevalier
--- Hi, When I used instrospection with systemd --user, there was a warning from DBus, the signature was s but in reality it was t. Regards, Ronny --- src/core/dbus-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/dbus-manager.c

Re: [systemd-devel] [PATCH] dbus-manager: fix variable type introspection

2013-04-08 Thread Lennart Poettering
On Mon, 08.04.13 18:22, Ronny Chevalier (rcheval...@aldebaran-robotics.com) wrote: --- Hi, When I used instrospection with systemd --user, there was a warning from DBus, the signature was s but in reality it was t. Thanks! Applied! Lennart -- Lennart Poettering - Red Hat, Inc.

Re: [systemd-devel] Possible race condition for setting cgroup sticky bit

2013-04-08 Thread Lennart Poettering
On Mon, 08.04.13 16:57, Anders Olofsson (anders.olofs...@axis.com) wrote: Ok, let's see if I can explain what we've done here. To introduce systemd in our system, we've started with just wrapping rc and all the old initscripts so we can get systemd running first and then afterwards start

Re: [systemd-devel] [PATCH v5] systemd-analyze: filter dot output

2013-04-08 Thread Lennart Poettering
On Sat, 06.04.13 15:40, Łukasz Stelmach (stl...@poczta.fm) wrote: Make systemd-analyze dot output only lines with units matching given glob(7) patterns. Add --from-pattern and --to-pattern options. Without any patterns all relationships are printed as before. A relationship must match the

Re: [systemd-devel] [PATCH 0/2] RFC for avoid dynamic allocation in?journald

2013-04-08 Thread Holger Hans Peter Freyther
On Mon, Apr 08, 2013 at 07:06:44PM +0200, Lennart Poettering wrote: Is it really needed to determine the cgroup of /proc/1 on every message? Couldn't journald keep the variables for its identity around? a) use gcc's __thread support, i.e. have one static cache var per thread. Since all

Re: [systemd-devel] Add ARCH parameter to /etc/os-release

2013-04-08 Thread Askar Safin
I wonder if it wouldn't be a better idea to somehow provide a sane API for this functionality rather than defining a configuration file format for it? I think there should be some plain text file with arch. Because this gives us chance to determine arch of some foreign system even if we cannot

Re: [systemd-devel] [PATCH] [RFCv3] Optionally save core dumps as plain files

2013-04-08 Thread Lennart Poettering
On Fri, 01.03.13 16:24, Oleksii Shevchuk (alx...@gmail.com) wrote: Heya! Sorry for the late review! +refnamediv +refnamecoredump.conf/refname +refpurposeCoredump utility configuration file/refpurpose We probably should spell this core dump rather than

Re: [systemd-devel] Add ARCH parameter to /etc/os-release

2013-04-08 Thread Askar Safin
I'm not sure what problem the proposal is trying to solve. Maybe it'd be clearer if that was provided. I want to know what is the arches of the systems on my computer. I. e. I want to do the following: for DISK in /dev/sd*; do mount $DISK /mnt source /mnt/etc/os-release echo Arch of $DISK

Re: [systemd-devel] Add ARCH parameter to /etc/os-release

2013-04-08 Thread Greg KH
On Mon, Apr 08, 2013 at 09:59:50PM +0400, Askar Safin wrote: I wonder if it wouldn't be a better idea to somehow provide a sane API for this functionality rather than defining a configuration file format for it? I think there should be some plain text file with arch. Because this gives us

[systemd-devel] Per-instance override with foobar.service.d

2013-04-08 Thread John Lane
I'm trying out the new foobar.service.d way of overriding unit files. I thought that I'd be able to have a number of service instances that were overridden differently but that does not seem to be the case (or, at least, I can't get it to work). I first updated to systemd 200 and tried

[systemd-devel] journal file corruption

2013-04-08 Thread Allin Cottrell
I'm running systemd-200, in journal-only mode (i.e. no rsyslog). My journald.conf is all factory defaults apart from setting SystemMaxUse=16M (and this limit is not yet met). My /var/log/journal/id contains 12 files (dated from March 31 to the present); and of these journalctl --verify tells

Re: [systemd-devel] [PATCH] shell-completion: Make bash completion show user units if --user is entered.

2013-04-08 Thread Gary van der Merwe
On 08/04/2013 14:24, Zbigniew Jędrzejewski-Szmek wrote: Hm, see the latest git. Something which does a similar job has been commited recently (9e542e0b3 'shell-completion: work on session shell is --user is used'). Zbyszek Ah, wonderful. ___

[systemd-devel] [ANNOUNCE] systemd 201

2013-04-08 Thread Lennart Poettering
Heya, http://www.freedesktop.org/software/systemd/systemd-201.tar.xz CHANGES WITH 201: * journalctl --update-catalog now understands a new --root= option to operate on catalogs found in a different root directory. * During shutdown after systemd has

[systemd-devel] Mounting efivars / efivarfs

2013-04-08 Thread Colin Guthrie
Hi, Seems on my system, I have to load the module efivars before I can mount my efivarfs (mount -t efivarfs efivarfs /sys/firmware/efi/efivars) Now, systemd should do this magically but for some reason it doesn't do that. If I do not have the efivars module loaded the above mount command fails.

Re: [systemd-devel] New mount restriction? -- from Systemd policy?

2013-04-08 Thread Linda Walsh
Andrey Borzenkov wrote: This seems to be yest another fallout of changed systemd policy - it now makes / shared mount. bor@opensuse:~ sudo mount --move /tmp/old /tmp/new mount: wrong fs type, bad option, bad superblock on /tmp/old, missing codepage or helper program, or other error

Re: [systemd-devel] Mounting efivars / efivarfs

2013-04-08 Thread Greg KH
On Tue, Apr 09, 2013 at 12:02:09AM +0100, Colin Guthrie wrote: Hi, Seems on my system, I have to load the module efivars before I can mount my efivarfs (mount -t efivarfs efivarfs /sys/firmware/efi/efivars) Now, systemd should do this magically but for some reason it doesn't do that. You

Re: [systemd-devel] journal file corruption

2013-04-08 Thread Cristian Rodríguez
On 04/08/2013 04:06 PM, Allin Cottrell wrote: I'm running systemd-200, Journal corruption thingy, well known, fixed in 201. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org