Re: [systemd-devel] The whole su/pkexec session debate

2013-12-05 Thread David Herrmann
Hi On Mon, Dec 2, 2013 at 8:17 PM, Colin Walters walt...@verbum.org wrote: On Mon, 2013-12-02 at 14:37 +0100, David Herrmann wrote: But then gnome-session should simply call ReleaseSession() on the bus itself.. I'd rather have some sort of API where a particular process is the session

Re: [systemd-devel] Last question about systemd before my presentation

2013-12-05 Thread Mantas Mikulėnas
Partial answer: On Dec 5, 2013 8:40 AM, Cecil Westerhof cecil.wester...@snow.nl wrote: Today I am giving my presentation about systemd/journald for a not very enthusiastic public. I would like some last answers on a ‘few’ questions. I understood that you could let systemd start-up the

Re: [systemd-devel] Last question about systemd before my presentation

2013-12-05 Thread Cecil Westerhof
On 12/05/2013 10:08 AM, Mantas Mikulėnas wrote: One of the problems mentioned is that services can be started only when they are used for the first time. As I understood it, you can make sure that a service is always loaded, so that there is no waiting time the first time it is called. This

Re: [systemd-devel] Last question about systemd before my presentation

2013-12-05 Thread Mantas Mikulėnas
On Dec 5, 2013 11:27 AM, Cecil Westerhof cecil.wester...@snow.nl wrote: On 12/05/2013 10:08 AM, Mantas Mikulėnas wrote: One of the problems mentioned is that services can be started only when they are used for the first time. As I understood it, you can make sure that a service is always

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread Jóhann B. Guðmundsson
On 12/05/2013 06:50 AM, Peter Hutterer wrote: ExecStartPre=/usr/sbin/modprobe wacom_w8001 Add a configuration file called wacom-w8001.conf to /etc/modules-load.d directory with the following content to load the module ( /etc/modules-load.d/wacom-w8001.conf ) # Load wacom_w8001 at boot

[systemd-devel] [RFC][PATCH] bus: Add destination field to sd_bus_message_new_signal() and sd_bus_emit_signal()

2013-12-05 Thread Lukasz Skalski
destination - the unique bus name for the destination for the signal or NULL to emit to all listeners. This path makes libsystemd-bus API more consistent and similar to GDBUS API, for reference: gboolean g_dbus_connection_emit_signal (GDBusConnection *connection,

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread Michael Biebl
2013/12/5 Jóhann B. Guðmundsson johan...@gmail.com: On 12/05/2013 06:50 AM, Peter Hutterer wrote: ExecStartPre=/usr/sbin/modprobe wacom_w8001 Add a configuration file called wacom-w8001.conf to /etc/modules-load.d directory with the following content to load the module (

Re: [systemd-devel] [RFC][PATCH] bus: Add destination field to sd_bus_message_new_signal() and sd_bus_emit_signal()

2013-12-05 Thread Simon McVittie
On 05/12/13 12:13, Lukasz Skalski wrote: destination - the unique bus name for the destination for the signal or NULL to emit to all listeners. This is rarely-needed functionality, but sometimes necessary. If anyone is going to replicate the client-facing functionality of the dbus-daemon using

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread Jóhann B. Guðmundsson
On 12/05/2013 12:28 PM, Michael Biebl wrote: 2013/12/5 Jóhann B. Guðmundssonjohan...@gmail.com: On 12/05/2013 06:50 AM, Peter Hutterer wrote: ExecStartPre=/usr/sbin/modprobe wacom_w8001 Add a configuration file called wacom-w8001.conf to /etc/modules-load.d directory with the following

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread David Timothy Strauss
On Thu, Dec 5, 2013 at 3:53 AM, Jóhann B. Guðmundsson johan...@gmail.com wrote: Never use a systemd unit to call modprobe. And, even if you did, modprobe would be Type=oneshot (maybe also with RemainAfterExit=true), definitely not Type=simple. ___

Re: [systemd-devel] [RFC][PATCH] bus: Add destination field to sd_bus_message_new_signal() and sd_bus_emit_signal()

2013-12-05 Thread Lennart Poettering
On Thu, 05.12.13 13:13, Lukasz Skalski (l.skal...@partner.samsung.com) wrote: destination - the unique bus name for the destination for the signal or NULL to emit to all listeners. This path makes libsystemd-bus API more consistent and similar to GDBUS API, for reference: Hmm, I thought

Re: [systemd-devel] [RFC][PATCH] bus: Add destination field to sd_bus_message_new_signal() and sd_bus_emit_signal()

2013-12-05 Thread Lennart Poettering
On Thu, 05.12.13 13:09, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: On 05/12/13 12:13, Lukasz Skalski wrote: destination - the unique bus name for the destination for the signal or NULL to emit to all listeners. This is rarely-needed functionality, but sometimes necessary. If

[systemd-devel] [PATCH] nspawn: fix buggy mount_binds, now works for bind-mounted files

2013-12-05 Thread Shawn Landden
--- src/nspawn/nspawn.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index dd7337b..c1212c0 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -416,6 +416,7 @@ static int

[systemd-devel] [PATCH] util: fix misuse of memcmp

2013-12-05 Thread Yuxuan Shui
--- src/shared/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/util.c b/src/shared/util.c index b4ed2c4..d685966 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -5919,7 +5919,7 @@ int shall_restore_state(void) { return 1;

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread Jóhann B. Guðmundsson
On 12/05/2013 01:57 PM, David Timothy Strauss wrote: On Thu, Dec 5, 2013 at 3:53 AM, Jóhann B. Guðmundsson johan...@gmail.com wrote: Never use a systemd unit to call modprobe. And, even if you did, modprobe would be Type=oneshot (maybe also with RemainAfterExit=true), definitely not

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Dec 05, 2013 at 04:50:54PM +1000, Peter Hutterer wrote: the new rule now is: SUBSYSTEM==tty|pnp, KERNEL==ttyS[0-9]*, ATTRS{id}==WACf*, \ ENV{SYSTEMD_WANTS}=wacom-inputattach@%k.service,TAG+=systemd And the matching wacom-inputattach@.service file shows: [Unit]

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread Colin Guthrie
'Twas brillig, and Jóhann B. Guðmundsson at 05/12/13 14:30 did gyre and gimble: On 12/05/2013 01:57 PM, David Timothy Strauss wrote: On Thu, Dec 5, 2013 at 3:53 AM, Jóhann B. Guðmundsson johan...@gmail.com wrote: Never use a systemd unit to call modprobe. And, even if you did, modprobe

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Dec 05, 2013 at 04:27:51PM +0100, Zbigniew Jędrzejewski-Szmek wrote: On Thu, Dec 05, 2013 at 04:50:54PM +1000, Peter Hutterer wrote: the new rule now is: SUBSYSTEM==tty|pnp, KERNEL==ttyS[0-9]*, ATTRS{id}==WACf*, \ ENV{SYSTEMD_WANTS}=wacom-inputattach@%k.service,TAG+=systemd

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread David Timothy Strauss
On Thu, Dec 5, 2013 at 7:29 AM, Colin Guthrie gm...@colin.guthr.ie wrote: The above statement not withstanding, but the Type and RemainAfterExit applies only to ExecStart. This unit calls modprobe in ExecStartPre which is always expected to do something and return. So this branch of the thread

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread Tom Gundersen
On 5 Dec 2013 07:48, Peter Hutterer peter.hutte...@who-t.net wrote: When I fired up F20 on one of my laptops here I noticed that inputattach doesn't work anymore for serial Wacom devices. It used to be started through udev, but that doesn't work anymore. So moving to a systemd service it is,

[systemd-devel] [PATCH] test: add run-qemu script

2013-12-05 Thread Ronny Chevalier
from Alexander Graf's script: http://www.spinics.net/lists/kvm/msg72389.html --- Hi, It adds a little script which try to find a QEMU binary on the system and enable kvm if it's available. This script is used when running QEMU in the tests. (We can also specify a different kernel and initramfs)

[systemd-devel] ptyfwd (nspawn): Correctly handle output redirection

2013-12-05 Thread Luke T . Shumaker
Ping http://lists.freedesktop.org/archives/systemd-devel/2013-November/thread.html#14661 Happy hacking, ~ Luke Shumaker ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] help with dependicies

2013-12-05 Thread John Davis
Hello I have four unit files. 1. xxx.target 2. tmp-testy.mount 3. tmp-testy_ro.mount 4. temp-testy_rw.mount I want the xxx.target to automatically start the three .mount unit files on boot. Item, 2. tmp-testy is a union mount of the two unit files 3. and 4. In order to get this to work, I

Re: [systemd-devel] Last question about systemd before my presentation

2013-12-05 Thread Lennart Poettering
On Thu, 05.12.13 07:40, Cecil Westerhof (cecil.wester...@snow.nl) wrote: Today I am giving my presentation about systemd/journald for a not very enthusiastic public. I would like some last answers on a ‘few’ questions. I understood that you could let systemd start-up the services

[systemd-devel] Presentation was a success

2013-12-05 Thread Cecil Westerhof
It was a lot of work, but the presentation about systemd/journald was a success. I got several colleges interested: so mission accomplished. There are some things I still should respond to, but I am a ‘little’ tired, so I will respond later. Thank everyone who helped me in making this

[systemd-devel] File system gets remounted read-only after using nspawn

2013-12-05 Thread Canek Peláez Valdés
Hi; I've been playing with systemd-nspawn with Gentoo. I'm running systemd 208, and the normal Gentoo stage3 image [1], installing systemd 204 inside it. Everything works great, but for some reason after powering off the container, the file system where it resides gets remounted read-only. I

Re: [systemd-devel] Presentation was a success

2013-12-05 Thread poma
On 05.12.2013 21:10, Cecil Westerhof wrote: It was a lot of work, but the presentation about systemd/journald was a success. I got several colleges interested: so mission accomplished. There are some things I still should respond to, but I am a ‘little’ tired, so I will respond later.

Re: [systemd-devel] [systemd-commits] src/core

2013-12-05 Thread Lennart Poettering
On Thu, 05.12.13 14:38, Zbigniew Jędrzejewski-Szmek (zbys...@kemper.freedesktop.org) wrote: src/core/device.c | 10 ++ 1 file changed, 10 insertions(+) New commits: commit e775289d56ace2f8d23e62ed79316d71332d6d05 Author: Zbigniew J??drzejewski-Szmek zbys...@in.waw.pl Date:

Re: [systemd-devel] [systemd-commits] src/core

2013-12-05 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Dec 06, 2013 at 03:16:08AM +0100, Lennart Poettering wrote: On Thu, 05.12.13 14:38, Zbigniew Jędrzejewski-Szmek (zbys...@kemper.freedesktop.org) wrote: src/core/device.c | 10 ++ 1 file changed, 10 insertions(+) New commits: commit

Re: [systemd-devel] [PATCH] nspawn: fix buggy mount_binds, now works for bind-mounted files

2013-12-05 Thread Zbigniew Jędrzejewski-Szmek
Applied. Zbyszek ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] util: fix misuse of memcmp

2013-12-05 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Dec 05, 2013 at 10:30:04PM +0800, Yuxuan Shui wrote: --- src/shared/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/util.c b/src/shared/util.c index b4ed2c4..d685966 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -5919,7 +5919,7 @@

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread Peter Hutterer
On Thu, Dec 05, 2013 at 04:38:45PM +0100, Zbigniew Jędrzejewski-Szmek wrote: On Thu, Dec 05, 2013 at 04:27:51PM +0100, Zbigniew Jędrzejewski-Szmek wrote: On Thu, Dec 05, 2013 at 04:50:54PM +1000, Peter Hutterer wrote: the new rule now is: SUBSYSTEM==tty|pnp, KERNEL==ttyS[0-9]*,

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread Peter Hutterer
On Thu, Dec 05, 2013 at 01:24:10PM +, Jóhann B. Guðmundsson wrote: On 12/05/2013 12:28 PM, Michael Biebl wrote: 2013/12/5 Jóhann B. Guðmundssonjohan...@gmail.com: On 12/05/2013 06:50 AM, Peter Hutterer wrote: ExecStartPre=/usr/sbin/modprobe wacom_w8001 Add a configuration file called