Re: [systemd-devel] [PATCH 1/2] Report about syntax error in extended format

2013-04-18 Thread Oleksii Shevchuk
Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl writes: I have now pushed a change that adds UNIT= or USER_UNIT= to most syntax error messages. This patch mostly follows Oleksii's approach, but extends it to all syntax parsing functions. For the last time I tried to use next approach: I added

Re: [systemd-devel] [PATCH] RFC: stack_size_guess() and LINE_MAX limitation for MESSAGE

2013-04-18 Thread Harald Hoyer
Am 17.04.2013 19:48, schrieb Lennart Poettering: On Mon, 15.04.13 16:12, har...@redhat.com (har...@redhat.com) wrote: From: Harald Hoyer har...@redhat.com Introduce stack_size_guess() and alloca_maybe_safe() and get rid of the LINE_MAX limitation for MESSAGE in sd_journal_printv*() tbh I

Re: [systemd-devel] [PATCH V4] service: Support environment variable substition for PIDFile=

2013-04-18 Thread Harald Hoyer
Am 18.04.2013 02:40, schrieb Lennart Poettering: On Wed, 10.04.13 16:53, har...@redhat.com (har...@redhat.com) wrote: From: Harald Hoyer har...@redhat.com This patch adds environment variable substition for PIDFile=. To read the environment files only once, ExecContext holds a copy of the

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

2013-04-18 Thread Koen Kooi
Op 17 apr. 2013, om 20:19 heeft Lennart Poettering lenn...@poettering.net het volgende geschreven: On Mon, 08.04.13 22:09, Askar Safin (safinas...@mail.ru) wrote: 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

Re: [systemd-devel] Socket is dying, how to automatically restart it?

2013-04-18 Thread Koen Kooi
Op 17 apr. 2013, om 21:05 heeft Lennart Poettering lenn...@poettering.net het volgende geschreven: On Wed, 10.04.13 19:03, Koen Kooi (k...@dominion.thruhere.net) wrote: Hi, I have a bit of a heisenbug where dropbear.socket will just die and needs a systemctl restart dropbear.socket. I

[systemd-devel] [PATCH V2] cryptsetup: ask for password, if key file cannot be accessed

2013-04-18 Thread harald
From: Harald Hoyer har...@redhat.com If the key file cannot be accessed, we can at least ask for the password. --- Remove access() call and check the return value of crypt_activate_by_keyfile_offset() src/cryptsetup/cryptsetup.c | 5 + 1 file changed, 5 insertions(+) diff --git

[systemd-devel] disable/enable vs reenable

2013-04-18 Thread Ross Lagerwall
Hi, If one executes: $ sudo systemctl enable getty@tty1.service ln -s '/usr/lib/systemd/system/getty@.service' '/etc/systemd/system/getty.target.wants/getty@tty1.service' and then you decide to override getty@.service: $ sudo cp /usr/lib/systemd/system/getty@.service

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

2013-04-18 Thread John Lane
On 18/04/13 01:27, Lennart Poettering wrote: On Mon, 08.04.13 20:08, John Lane (syst...@jelmail.com) wrote: 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

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

2013-04-18 Thread Tollef Fog Heen
]] Koen Kooi But it does answer the can I nspawn into this rootfs? question for different architectures like powerpc vs x86 :) No, it doesn't. You'll have false negatives, think about binfmt_misc combined with qemu user emulation for instance. The right way to see if you can do that is to

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

2013-04-18 Thread Lennart Poettering
On Thu, 18.04.13 09:26, Koen Kooi (k...@dominion.thruhere.net) wrote: So it returns something that could be considered usefull on my laptop, but the output on the beaglebone is useless. On ARM you need to know the following to see if you can execute the binary: 1) instruction set revision

[systemd-devel] [PATCH v4] buildsys: Add --disable-tests to avoid building tests

2013-04-18 Thread Henrik Grindal Bakken
This patch adds --disable-tests to configure. It is based on a patch posted by Thierry Reding in 2010. The motivation for adding it is that some tests fail link-time when cross-compiling. The patch adds a new Makefile variable -- manual_tests -- and uses that instead of noinst_PROGRAMS.

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

2013-04-18 Thread Askar Safin
Okey, okey, you are right. Don't add ARCH to os-release ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Reason for su command to be ignored in target?

2013-04-18 Thread Mark Hounschell
On 04/17/2013 04:16 PM, Lennart Poettering wrote: On Wed, 17.04.13 16:08, Mark Hounschell (ma...@compro.net) wrote: That looks OK. Can you try the logger thing I suggested? That should tell us if the transition works at all... Sorry, I had a dentist Apt. Uh, I put this as the first command

Re: [systemd-devel] Socket is dying, how to automatically restart it?

2013-04-18 Thread Lennart Poettering
On Thu, 18.04.13 09:28, Koen Kooi (k...@dominion.thruhere.net) wrote: And if the somebody invokes shutdown() on the listening socket (not the connection socket), but that's a really weird thing to do. But people do weird things, and this has occured before. Otherwise I have no idea

Re: [systemd-devel] [PATCH V4] service: Support environment variable substition for PIDFile=

2013-04-18 Thread Lennart Poettering
On Thu, 18.04.13 08:46, Harald Hoyer (har...@redhat.com) wrote: Then, the whole PID file story looks like a mess to me anyway, modern daemons should not use PID files anyway... Even more, making them configurable sounds really wrong. If this is about allowing instantiation, then people

Re: [systemd-devel] Socket is dying, how to automatically restart it?

2013-04-18 Thread Thomas Bächler
Am 18.04.2013 16:04, schrieb Lennart Poettering: That said, screen should probably set up a new PAM session of its own and detach from the original one. That sounds like a good idea - unfortunately, screen does not seem to have PAM session support at all, and I couldn't find the obvious place

Re: [systemd-devel] Socket is dying, how to automatically restart it?

2013-04-18 Thread Lennart Poettering
On Thu, 18.04.13 16:38, Thomas Bächler (tho...@archlinux.org) wrote: Am 18.04.2013 16:04, schrieb Lennart Poettering: That said, screen should probably set up a new PAM session of its own and detach from the original one. That sounds like a good idea - unfortunately, screen does not seem

Re: [systemd-devel] [PATCH v4] buildsys: Add --disable-tests to avoid building tests

2013-04-18 Thread Lennart Poettering
On Thu, 18.04.13 14:40, Henrik Grindal Bakken (h...@ifi.uio.no) wrote: This patch adds --disable-tests to configure. It is based on a patch posted by Thierry Reding in 2010. The motivation for adding it is that some tests fail link-time when cross-compiling. The patch adds a new Makefile

Re: [systemd-devel] Socket is dying, how to automatically restart it?

2013-04-18 Thread George McCollister
On 04/10/2013 12:03 PM, Koen Kooi wrote: Hi, I have a bit of a heisenbug where dropbear.socket will just die and needs a systemctl restart dropbear.socket. I can't tell why it's dying, just that it does within 3 days of uptime. After restarting it it seems to be rock solid again for at least

[systemd-devel] [PATCH] systemd-logind: Fix linking by reordering libraries in LDADD

2013-04-18 Thread Josh Triplett
libsystemd-audit needs functions from libsystemd-shared, so libsystemd-audit needs to appear first. Otherwise: CCLD systemd-logind ./.libs/libsystemd-audit.a(audit.o): In function `audit_session_from_pid': /home/josh/src/systemd/src/shared/audit.c:50: undefined reference to

Re: [systemd-devel] [PATCH] systemd-logind: Fix linking by reordering libraries in LDADD

2013-04-18 Thread Kay Sievers
On Thu, Apr 18, 2013 at 8:32 PM, Josh Triplett j...@joshtriplett.org wrote: libsystemd-audit needs functions from libsystemd-shared, so libsystemd-audit needs to appear first. Otherwise: CCLD systemd-logind ./.libs/libsystemd-audit.a(audit.o): In function `audit_session_from_pid':

Re: [systemd-devel] [PATCH V2] cryptsetup: ask for password, if key file cannot be accessed

2013-04-18 Thread Lennart Poettering
On Thu, 18.04.13 09:41, har...@redhat.com (har...@redhat.com) wrote: From: Harald Hoyer har...@redhat.com If the key file cannot be accessed, we can at least ask for the password. Looks good! Applied! (I didn't test it though, but I hope you did? ;-)) Lennart -- Lennart Poettering - Red

[systemd-devel] [ANNOUNCE] systemd 202

2013-04-18 Thread Lennart Poettering
Heya! Many fixes, some additions, and a lot of (experimental) kdbus work. kdbus is coming along nicely, BTW. http://www.freedesktop.org/software/systemd/systemd-202.tar.xz CHANGES WITH 202: * The output of 'systemctl list-jobs' got some polishing. The '--type=' argument may