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

2013-04-18 Thread Koen Kooi
Op 18 apr. 2013, om 14:08 heeft Lennart Poettering het volgende geschreven: > 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 kn

[systemd-devel] Service unit issue: starts manually but doesn't start on boot

2013-04-18 Thread Peter Li
Greetings, I hope this issue is familiar to someone here. I wrote a unit file for a service called "wsgw". It starts fine with `systemctl start wsgw`, and `systemctl enable wsgw` goes smoothly, but the service doesn't start on boot. My only diagnostic so far has been running `systemctl statu

[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 no

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 > > 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 Hat, Inc.

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 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': > /home/josh/src/system

[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 `detect_container

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

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 Makef

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

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

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

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 i

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

[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. However

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 revi

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 t

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

[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 /etc/systemd/system/getty@.

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

2013-04-18 Thread harald
From: Harald Hoyer 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 a/src/cryptsetup/cryptsetup

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 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 can't tell why

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 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 is the arch