Re: [systemd-devel] Systemd askpassword

2014-04-12 Thread Ismael Bouya
Hi, Thanks for your answer! The attached journals (described below) are here: http://www.normalesup.org/~bouya/temp/systemd/ So after investigation I have to ponder the "hang forever". In the attached journal file (b2) it dies by himself after exactly one minute. Sometimes I manually reset it thro

Re: [systemd-devel] Get exit status inside ExecStopPost ?

2014-04-12 Thread Anand Patil
OK, no problem, thanks for the answer. Anand On Sat, Apr 12, 2014 at 2:45 PM, Zbigniew Jędrzejewski-Szmek < [email protected]> wrote: > On Fri, Apr 11, 2014 at 12:19:52PM -0700, Anand Patil wrote: > > Hi everyone, > > > > In a service's ExecStopPost, is there an easy way to access the exit > st

Re: [systemd-devel] Systemd askpassword

2014-04-12 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Apr 12, 2014 at 10:08:27PM +0200, Ismael Bouya wrote: > Hi, > I'm facing a problem with systemd and his "askpassword" feature: > > I want to add a luks partition, so I need to ask for the password at some > time. However, I don't want to ask for it during the boot sequence, so I > added th

Re: [systemd-devel] Get exit status inside ExecStopPost ?

2014-04-12 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Apr 11, 2014 at 12:19:52PM -0700, Anand Patil wrote: > Hi everyone, > > In a service's ExecStopPost, is there an easy way to access the exit status > of the service's ExecStart process? No. You might be able to get something useful over dbus, although I don't know if the exit value is alr

Re: [systemd-devel] [PATCH v3] fsck: Search for fsck.type in PATH

2014-04-12 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Apr 12, 2014 at 04:07:45PM -0400, Mike Gilbert wrote: > Modifies find_binary() to accept NULL in the second argument. > > fsck.type lookup logic moved to new fsck_exists() function, with a test. Applied. I added _cleanup_free_ to simplify one branch, and added a follow-up patch to check a

Re: [systemd-devel] [PATCH] libnetworkd: only allow positive ifindex

2014-04-12 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Apr 12, 2014 at 09:59:52PM +0200, Tom Gundersen wrote: > On Sat, Apr 12, 2014 at 7:26 PM, Zbigniew Jędrzejewski-Szmek > wrote: > > On Sat, Apr 12, 2014 at 01:19:48PM +0200, Umut Tezduyar Lindskog wrote: > >> Patch doesn't apply anymore after reference counting changes. I will > >> re-send

[systemd-devel] Systemd askpassword

2014-04-12 Thread Ismael Bouya
Hi, I'm facing a problem with systemd and his "askpassword" feature: I want to add a luks partition, so I need to ask for the password at some time. However, I don't want to ask for it during the boot sequence, so I added the "nofail" flag and didn't put any timeout. Everything goes well, I can

[systemd-devel] [PATCH v3] fsck: Search for fsck.type in PATH

2014-04-12 Thread Mike Gilbert
Modifies find_binary() to accept NULL in the second argument. fsck.type lookup logic moved to new fsck_exists() function, with a test. --- src/fsck/fsck.c | 10 +- src/shared/generator.c| 12 +--- src/shared/path-util.c| 33 ++--- src/

Re: [systemd-devel] [PATCH] libnetworkd: only allow positive ifindex

2014-04-12 Thread Tom Gundersen
On Sat, Apr 12, 2014 at 7:26 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Sat, Apr 12, 2014 at 01:19:48PM +0200, Umut Tezduyar Lindskog wrote: >> Patch doesn't apply anymore after reference counting changes. I will >> re-send it along with ipv4ll tests which is coming up right away. > Cool. Could y

Re: [systemd-devel] [PATCH v2] fsck: Search for fsck.type in PATH

2014-04-12 Thread Mike Gilbert
On Sat, Apr 12, 2014 at 3:10 PM, Mike Gilbert wrote: > On Sat, Apr 12, 2014 at 1:40 PM, Zbigniew Jędrzejewski-Szmek > wrote: >>> +static void test_fsck_exists(void) { >>> +/* Ensure we use a sane default for PATH. */ >>> +unsetenv("PATH"); >>> + >>> +/* fsck.minix is provi

Re: [systemd-devel] [PATCH v2] fsck: Search for fsck.type in PATH

2014-04-12 Thread Mike Gilbert
On Sat, Apr 12, 2014 at 1:40 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Sat, Apr 12, 2014 at 12:07:04PM -0400, Mike Gilbert wrote: >> Modifies find_binary() to accept NULL in the second argument. >> >> fsck.type lookup logic moved to new fsck_exists() function, with a test. >> --- >> src/fsck/fs

Re: [systemd-devel] [PATCH 1/1] networkd: Introduce ipip tunnel

2014-04-12 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Apr 08, 2014 at 08:52:51AM +0530, Susant Sahani wrote: > This patch enables basic ipip tunnel support. > It works with kernel module ipip > > Example configuration > > file: ipip.netdev > -- > [NetDev] > Name=ipip-tun > Kind=ipip > > [Tunnel] > Local=192.168.8.102

Re: [systemd-devel] [PATCH v2] fsck: Search for fsck.type in PATH

2014-04-12 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Apr 12, 2014 at 12:07:04PM -0400, Mike Gilbert wrote: > Modifies find_binary() to accept NULL in the second argument. > > fsck.type lookup logic moved to new fsck_exists() function, with a test. > --- > src/fsck/fsck.c| 9 - > src/shared/generator.c | 11 --- > sr

Re: [systemd-devel] [PATCH 2/2] path-lookup: don't hardcode .config

2014-04-12 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Apr 12, 2014 at 08:37:39AM +0300, Tanu Kaskinen wrote: > If XDG_CONFIG_HOME is set, then we should respect that. > --- > src/shared/path-lookup.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/src/shared/path-lookup.c b/src/shared/path-lookup.c > index 63af4

Re: [systemd-devel] [PATCH 1/2] man: mention XDG_CONFIG_HOME in systemd.unit

2014-04-12 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Apr 12, 2014 at 08:37:38AM +0300, Tanu Kaskinen wrote: > --- > man/systemd.unit.xml | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) Applied 1/2. Zbyszek ___ systemd-devel mailing list [email protected] http://l

Re: [systemd-devel] [PATCH] libnetworkd: only allow positive ifindex

2014-04-12 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Apr 12, 2014 at 01:19:48PM +0200, Umut Tezduyar Lindskog wrote: > Patch doesn't apply anymore after reference counting changes. I will > re-send it along with ipv4ll tests which is coming up right away. Cool. Could you add a bit of a commit message explaining the change for the poor ignoran

Re: [systemd-devel] [PATCH] build: if -fstack-protector-strong is available, use it.

2014-04-12 Thread Zbigniew Jędrzejewski-Szmek
Yeah, this seems a good thing. Applied. Zbyszek ___ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] [PATCH v2] fsck: Search for fsck.type in PATH

2014-04-12 Thread Mike Gilbert
Modifies find_binary() to accept NULL in the second argument. fsck.type lookup logic moved to new fsck_exists() function, with a test. --- src/fsck/fsck.c| 9 - src/shared/generator.c | 11 --- src/shared/path-util.c | 11 --- src/shared/util.c | 8

Re: [systemd-devel] [PATCH] core: Make sure a stamp file exists for all Persistent=true timers

2014-04-12 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Apr 12, 2014 at 01:02:53PM +0200, Tom Gundersen wrote: > On Sat, Apr 12, 2014 at 12:57 PM, Thomas Bächler wrote: > > Am 05.04.2014 17:32, schrieb Thomas Bächler: > >> Am 05.04.2014 11:35, schrieb Tom Gundersen: > >>> On Wed, Apr 2, 2014 at 8:18 PM, Thomas Bächler > >>> wrote: > If a

Re: [systemd-devel] [PATCH] libnetworkd: only allow positive ifindex

2014-04-12 Thread Umut Tezduyar Lindskog
Patch doesn't apply anymore after reference counting changes. I will re-send it along with ipv4ll tests which is coming up right away. On Thu, Apr 10, 2014 at 2:35 PM, Umut Tezduyar Lindskog wrote: > From: Umut Tezduyar Lindskog > > --- > src/libsystemd-network/sd-dhcp-client.c |2 +- > s

[systemd-devel] [PATCH] libnetworkd: add link local tests

2014-04-12 Thread Umut Tezduyar Lindskog
- Also only allow positive ifindex on both dhcp and ipv4ll --- Makefile.am | 14 +- TODO |1 - src/libsystemd-network/sd-dhcp-client.c |2 +- src/libsystemd-network/sd-ipv4ll.c|7 +- src/libsystemd-network/t

Re: [systemd-devel] [PATCH] core: Make sure a stamp file exists for all Persistent=true timers

2014-04-12 Thread Tom Gundersen
On Sat, Apr 12, 2014 at 12:57 PM, Thomas Bächler wrote: > Am 05.04.2014 17:32, schrieb Thomas Bächler: >> Am 05.04.2014 11:35, schrieb Tom Gundersen: >>> On Wed, Apr 2, 2014 at 8:18 PM, Thomas Bächler wrote: If a persistent timer has no stamp file yet, it behaves just like a normal time

Re: [systemd-devel] [PATCH] core: Make sure a stamp file exists for all Persistent=true timers

2014-04-12 Thread Thomas Bächler
Am 05.04.2014 17:32, schrieb Thomas Bächler: > Am 05.04.2014 11:35, schrieb Tom Gundersen: >> On Wed, Apr 2, 2014 at 8:18 PM, Thomas Bächler wrote: >>> If a persistent timer has no stamp file yet, it behaves just like a normal >>> timer until it runs for the first time. If the system is always shu

Re: [systemd-devel] [RFC PATCH] service: add FailureAction= option

2014-04-12 Thread Michael Olbrich
On Fri, Apr 11, 2014 at 04:07:46PM +0200, Lennart Poettering wrote: > On Fri, 11.04.14 09:48, Michael Olbrich ([email protected]) wrote: > > > > +else if (allow_restart && > > > > > > I would drop the "else" here, I think. Is there a reason not to do the > > > restart thing anyway?

[systemd-devel] Default file permissions in user mode

2014-04-12 Thread Tanu Kaskinen
Hi, The systemd.socket man page says that the default value for DirectoryMode is 0755. Judging from the code in the socket_init() function, the documentation matches the implementation. 0755 seems appropriate for the system mode, but wouldn't 0700 be better for the user mode? Likewise for the