Re: [systemd-devel] Get rid of /etc/fstab

2013-02-04 Thread Lennart Poettering
On Sat, 02.02.13 15:24, Sébastien Luttringer (se...@seblu.net) wrote: Hello, Looking forward to mount custom partitions I decided to use unit.mount files to define my new fs. Everything works perfectly, so I tried to do the same with all my mounted filesystems and removing /etc/fstab. I am

Re: [systemd-devel] Get rid of /etc/fstab

2013-02-04 Thread Reindl Harald
Am 04.02.2013 10:18, schrieb Lennart Poettering: On Sat, 02.02.13 15:24, Sébastien Luttringer (se...@seblu.net) wrote: Hello, Looking forward to mount custom partitions I decided to use unit.mount files to define my new fs. Everything works perfectly, so I tried to do the same with all

Re: [systemd-devel] [bug] (char*)NULL should be used in variadic functions

2013-02-04 Thread Michał Bartoszkiewicz
On Mon, Feb 4, 2013 at 11:15 AM, Lennart Poettering lenn...@poettering.net wrote: We actually care about readability of the sources and non-Linux systems are out-of-focus for us. Can you tell me which Linux system has sizeof(void*) != sizeof(char*)? Otherwise, I only see this as pointless

Re: [systemd-devel] [PATCH] core: reuse the same /tmp and /var/tmp

2013-02-04 Thread Colin Guthrie
[and the crowd goes wild!] Thanks for this work. I've also had a few bug reports about this one. 'Twas brillig, and Michal Sekletar at 02/02/13 09:10 did gyre and gimble: thank you very much for the review, it is very appreciated. I've sent out the patch to get a feedback on a general

Re: [systemd-devel] changing the mount --make-shared / default

2013-02-04 Thread Tom Gundersen
On Feb 4, 2013 10:31 AM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 01.02.13 12:50, Jake Edge (j...@lwn.net) wrote: [ OK, let's try this again ... since I'm impatient about it sitting in the moderator queue, I went ahead and joined up ] Hi Lennart (and the rest of the

Re: [systemd-devel] changing the mount --make-shared / default

2013-02-04 Thread Tom Gundersen
On Feb 4, 2013 1:36 PM, Tom Gundersen t...@jklm.no wrote: On Feb 4, 2013 10:31 AM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 01.02.13 12:50, Jake Edge (j...@lwn.net) wrote: [ OK, let's try this again ... since I'm impatient about it sitting in the moderator queue, I

Re: [systemd-devel] [PATCH] Correctly parse commented multiline variables

2013-02-04 Thread Michal Vyskocil
Hi, can you check if it works with the following test case? For me it doesn't, and I think there must be a bug. Zbyszek Hi Zbigniew, sorry for a responding on my initial email, but for some reason your response[1] did not appear in my mailbox. Anyway your test have raised an interesting

[systemd-devel] [PATCH 1/2] core: keep mountinfo .mounts until late shutdown

2013-02-04 Thread Umut Tezduyar
.mount units coming from /proc/self/mountinfo file are unmounted after local-fs.target is reached during shutdown. Problem: .mount units popping up in mountinfo file are added to systemd without any dependency. For that reason, they are the first one to be unmounted during shutdown. Whichever

[systemd-devel] [PATCH 2/2] core: do not overwrite existing units source

2013-02-04 Thread Umut Tezduyar
Only set source for freshly created .mounts coming from mountinfo file. --- src/core/mount.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/core/mount.c b/src/core/mount.c index 29ce440..8231059 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@

Re: [systemd-devel] [PATCH 1/2] core: keep mountinfo .mounts until late shutdown

2013-02-04 Thread Umut Tezduyar
Downside of this patch is, mountinfo mounts stick around as inactive-dead even when the file system they represent is unmounted. On Mon, Feb 4, 2013 at 3:00 PM, Umut Tezduyar u...@tezduyar.com wrote: .mount units coming from /proc/self/mountinfo file are unmounted after local-fs.target is

[systemd-devel] [PATCH 1/3] journal: log user units for coredumps and show them in systemctl status

2013-02-04 Thread Mirco Tischler
--- src/journal/coredump.c | 9 ++--- src/shared/logs-show.c | 18 +++--- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/journal/coredump.c b/src/journal/coredump.c index c989be9..91528d3 100644 --- a/src/journal/coredump.c +++ b/src/journal/coredump.c @@

[systemd-devel] [PATCH 3/3] coredump: make use of the cleanup macros

2013-02-04 Thread Mirco Tischler
--- src/journal/coredump.c | 28 ++-- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/src/journal/coredump.c b/src/journal/coredump.c index 91528d3..4f79c45 100644 --- a/src/journal/coredump.c +++ b/src/journal/coredump.c @@ -32,6 +32,7 @@ #include log.h

Re: [systemd-devel] lazy forwarding of ssh ports

2013-02-04 Thread Igor Bukanov
Thanks again! I have completely missed this new feature of ssh. On 2/3/13, Mantas Mikulėnas graw...@gmail.com wrote: On Wed, Jan 30, 2013 at 12:52 AM, Igor Bukanov i...@mir2.org wrote: On 29 January 2013 00:25, Mantas Mikulėnas graw...@gmail.com wrote: systemd only handles accepting

[systemd-devel] [PATCH 2/3] logs-show: show messages for all unit types in systemctl status

2013-02-04 Thread Mirco Tischler
I can't find a reason why we shouldn't try to output messages for other unit types than .service, .socket, .mount and .swap as well. It's probably a leftover from before we started logging UNIT= from inside PID 1. --- src/shared/logs-show.c | 11 --- 1 file changed, 11 deletions(-) diff

[systemd-devel] [PATCH] systemd-analyze: rewrite in C.

2013-02-04 Thread Simon Peeters
Written by Peeters Simon peeters.si...@gmail.com. Makefile stuff and cleaned up a bit by Auke Kok auke-jan.h@intel.com. --- Makefile.am| 21 +- src/analyze/systemd-analyze.c | 575 + src/analyze/systemd-analyze.in | 328

[systemd-devel] [PATCH 1/2] Ignore IPv6 link-local addresses

2013-02-04 Thread Eelco Dolstra
Returning IPv6 link-local addresses is a bad idea, because they only work if an application connects specifically over the corresponding interface. So you get errors like: $ curl -6 http://my-machine/ curl: (7) Failed to connect to fe80::d6be:d9ff:fe1b:8477: Invalid argument To prevent

[systemd-devel] [PATCH 2/2] Fix a segfault in nscd when using nss-myhostname

2013-02-04 Thread Eelco Dolstra
Nscd expects that an NSS module's gethostbyname4_r function returns its first result in the pre-allocated gaih_addrtuple denoted by **pat. (See nscd/aicache.c in the Glibc sources.) However, nss-myhostname doesn't fill in **pat but allocates the first result in ‘buffer’, then sets *pat. So nscd

Re: [systemd-devel] [PATCH 1/2] Ignore IPv6 link-local addresses

2013-02-04 Thread Mantas Mikulėnas
On Mon, Feb 4, 2013 at 4:56 PM, Eelco Dolstra eelco.dols...@logicblox.com wrote: Returning IPv6 link-local addresses is a bad idea, because they only work if an application connects specifically over the corresponding interface. So you get errors like: $ curl -6 http://my-machine/ curl:

Re: [systemd-devel] [PATCH 1/2] Ignore IPv6 link-local addresses

2013-02-04 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 04, 2013 at 03:56:25PM +0100, Eelco Dolstra wrote: Returning IPv6 link-local addresses is a bad idea, because they only work if an application connects specifically over the corresponding interface. Isn't this a responsibility of the application to deal with that? So you get

Re: [systemd-devel] [PATCH 1/2] core: keep mountinfo .mounts until late shutdown

2013-02-04 Thread Frederic Crozat
Le lundi 04 février 2013 à 16:23 +0100, Zbigniew Jędrzejewski-Szmek a écrit : Hi, On Mon, Feb 04, 2013 at 03:03:59PM +0100, Umut Tezduyar wrote: Downside of this patch is, mountinfo mounts stick around as inactive-dead even when the file system they represent is unmounted. On Mon,

Re: [systemd-devel] [PATCH 1/2] Ignore IPv6 link-local addresses

2013-02-04 Thread Eelco Dolstra
Hi, On 04/02/13 16:36, Mantas Mikulėnas wrote: In other words, the scope ID is filled in correctly when I request AF_UNSPEC, but it's empty for AF_INET6. Hm, interesting. I see now that curl without -6 does connect correctly to the link-local address, so the failure with -6 is probably

Re: [systemd-devel] [PATCH 3/3] coredump: make use of the cleanup macros

2013-02-04 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 04, 2013 at 03:13:25PM +0100, Mirco Tischler wrote: --- src/journal/coredump.c | 28 ++-- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/src/journal/coredump.c b/src/journal/coredump.c index 91528d3..4f79c45 100644 ---

Re: [systemd-devel] python - reading the journal

2013-02-04 Thread Steven Hiscocks
On 04/02/13 05:13, David Strauss wrote: I second the interest in committing this to the existing Python support once polished. On Sun, Feb 3, 2013 at 6:07 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Sun, Feb 03, 2013 at 09:18:28PM +, Steven Hiscocks wrote: Hi, I've been

Re: [systemd-devel] [bug] (char*)NULL should be used in variadic functions

2013-02-04 Thread Lennart Poettering
On Mon, 04.02.13 11:37, Michał Bartoszkiewicz (mbartoszkiew...@gmail.com) wrote: On Mon, Feb 4, 2013 at 11:15 AM, Lennart Poettering lenn...@poettering.net wrote: We actually care about readability of the sources and non-Linux systems are out-of-focus for us. Can you tell me which Linux

Re: [systemd-devel] SSL for gatewayd

2013-02-04 Thread Colin Guthrie
'Twas brillig, and Zbigniew Jędrzejewski-Szmek at 16/01/13 20:55 did gyre and gimble: On Wed, Jan 16, 2013 at 09:33:22PM +0100, Holger Winkelmann wrote: Can't speak from person experience, but my team has worked with the libevent and libev libraries which contain http libraries as well.

[systemd-devel] [PATCH][V3] systemd-analyze: rewrite in C.

2013-02-04 Thread Simon Peeters
Written by Peeters Simon peeters.si...@gmail.com. Makefile stuff and cleaned up a bit by Auke Kok auke-jan.h@intel.com. --- Fixed some stuff and dit some more cleanup. This should just cover the same usage as the old systemd-analyze, but we can add more functionality afterwards (systemctl

Re: [systemd-devel] systemd should not call KDSKBMODE on a VT with X

2013-02-04 Thread Lennart Poettering
On Sat, 02.02.13 14:17, Arthur Taylor (a...@ified.ca) wrote: Hello systemd developers TL;DR: On a VT which X is running, messing with KDSKBMODE on underneath X at best has no affect and at worst breaks keyboard input badly. In the short term, systemd should stop calling this ioctl because

Re: [systemd-devel] [PATCH] man: remove boot up runlevel support

2013-02-04 Thread Lennart Poettering
On Fri, 01.02.13 13:20, Umut Tezduyar (u...@tezduyar.com) wrote: As of 3cdebc217c42c8529086f2965319b6a48eaaeabe support for distro specific boot up runlevels has been dropped. Thanks! Applied! Lennart -- Lennart Poettering - Red Hat, Inc. ___

Re: [systemd-devel] [PATCH][V3] systemd-analyze: rewrite in C.

2013-02-04 Thread Reindl Harald
Am 04.02.2013 22:33, schrieb Peeters Simon: 2013/2/4 Lennart Poettering lenn...@poettering.net: On Mon, 04.02.13 21:32, Simon Peeters (peeters.si...@gmail.com) wrote: Written by Peeters Simon peeters.si...@gmail.com. Makefile stuff and cleaned up a bit by Auke Kok auke-jan.h@intel.com.

Re: [systemd-devel] [PATCH][V3] systemd-analyze: rewrite in C.

2013-02-04 Thread Marc-Antoine Perennou
On 4 February 2013 22:33, Peeters Simon peeters.si...@gmail.com wrote: 2013/2/4 Lennart Poettering lenn...@poettering.net: On Mon, 04.02.13 21:32, Simon Peeters (peeters.si...@gmail.com) wrote: Written by Peeters Simon peeters.si...@gmail.com. Makefile stuff and cleaned up a bit by Auke

Re: [systemd-devel] [PATCH][V3] systemd-analyze: rewrite in C.

2013-02-04 Thread Kok, Auke-jan H
On Mon, Feb 4, 2013 at 1:33 PM, Peeters Simon peeters.si...@gmail.com wrote: 2013/2/4 Lennart Poettering lenn...@poettering.net: On Mon, 04.02.13 21:32, Simon Peeters (peeters.si...@gmail.com) wrote: Written by Peeters Simon peeters.si...@gmail.com. Makefile stuff and cleaned up a bit by Auke

Re: [systemd-devel] [PATCH][V3] systemd-analyze: rewrite in C.

2013-02-04 Thread Reindl Harald
Am 04.02.2013 22:47, schrieb Kok: On Mon, Feb 4, 2013 at 1:45 PM, Reindl Harald h.rei...@thelounge.net wrote: Am 04.02.2013 22:33, schrieb Peeters Simon: 2013/2/4 Lennart Poettering lenn...@poettering.net: On Mon, 04.02.13 21:32, Simon Peeters (peeters.si...@gmail.com) wrote: Written by

Re: [systemd-devel] build failures in latest master from d848b9cbfa0ba72381363accce481600169df2eb

2013-02-04 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 04, 2013 at 01:54:56PM -0800, Kok, Auke-jan H wrote: On Thu, Jan 31, 2013 at 7:29 AM, Colin Walters walt...@verbum.org wrote: Ok, here's a first patch that helps my build: as of today I need this patch to make my compiles (source-based distro) actully succeed, otherwise

Re: [systemd-devel] python - reading the journal

2013-02-04 Thread Steven Hiscocks
On 04/02/13 18:30, Steven Hiscocks wrote: On 04/02/13 05:13, David Strauss wrote: I second the interest in committing this to the existing Python support once polished. On Sun, Feb 3, 2013 at 6:07 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Sun, Feb 03, 2013 at 09:18:28PM

Re: [systemd-devel] Feature request: schedule jobs for last day of month

2013-02-04 Thread Lennart Poettering
On Thu, 31.01.13 00:07, Dave (d...@flex.com.au) wrote: Hi. I'm not on the maillist, but I recently read that systemd was planning to introduce an integrated job scheduler, if it isn't done already. If so, then it would be very handy to introduce a way to run scheduled jobs at the end of

Re: [systemd-devel] build failures in latest master from d848b9cbfa0ba72381363accce481600169df2eb

2013-02-04 Thread Kok, Auke-jan H
On Mon, Feb 4, 2013 at 2:14 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Mon, Feb 04, 2013 at 01:54:56PM -0800, Kok, Auke-jan H wrote: On Thu, Jan 31, 2013 at 7:29 AM, Colin Walters walt...@verbum.org wrote: Ok, here's a first patch that helps my build: as of today I need this

Re: [systemd-devel] [PATCH][V3] systemd-analyze: rewrite in C.

2013-02-04 Thread William Giokas
On Mon, Feb 04, 2013 at 09:32:33PM +0100, Simon Peeters wrote: Written by Peeters Simon peeters.si...@gmail.com. Makefile stuff and cleaned up a bit by Auke Kok auke-jan.h@intel.com. --- Fixed some stuff and dit some more cleanup. This should just cover the same usage as the old

Re: [systemd-devel] [PATCH][V3] systemd-analyze: rewrite in C.

2013-02-04 Thread Peeters Simon
2013/2/5 William Giokas 1007...@gmail.com: Thanks! It applied cleanly. Just a comment in the analyze_plot fucntion. Previously I mentioned that really short boot times make plots that are too small to really read anything, and I kept getting graphs that were trunctated and short, basically

Re: [systemd-devel] Feature request: schedule jobs for last day of month

2013-02-04 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 04, 2013 at 11:47:05PM +0100, Lennart Poettering wrote: On Thu, 31.01.13 00:07, Dave (d...@flex.com.au) wrote: Hi. I'm not on the maillist, but I recently read that systemd was planning to introduce an integrated job scheduler, if it isn't done already. If so, then it

Re: [systemd-devel] systemd should not call KDSKBMODE on a VT with X

2013-02-04 Thread Kay Sievers
On Sat, Feb 2, 2013 at 11:17 PM, Arthur Taylor a...@ified.ca wrote: KDSKBMODE is a virtual console ioctl which changes the current mode of the virtual console keyboard for that particular virtual terminal. That is, the virtual console keyboard mode, like the keymap, is a per-virtual terminal

Re: [systemd-devel] [PATCH 3/3] coredump: make use of the cleanup macros

2013-02-04 Thread Mirco Tischler
2013/2/4 Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl On Mon, Feb 04, 2013 at 03:13:25PM +0100, Mirco Tischler wrote: --- src/journal/coredump.c | 28 ++-- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/src/journal/coredump.c

[systemd-devel] [PATCH] coredump: make use of the cleanup macros

2013-02-04 Thread Mirco Tischler
--- src/journal/coredump.c | 41 ++--- 1 file changed, 10 insertions(+), 31 deletions(-) diff --git a/src/journal/coredump.c b/src/journal/coredump.c index 91528d3..021b4c6 100644 --- a/src/journal/coredump.c +++ b/src/journal/coredump.c @@ -32,6 +32,7 @@

Re: [systemd-devel] Feature request: schedule jobs for last day of month

2013-02-04 Thread Larry Baker
On 4 Feb 2013, at 4:20 PM, Zbigniew Jędrzejewski-Szmek wrote: Suggestions what we could do instead? 2012-02-:4 maybe? 2012-02-~4? This one looks nice. What about 2012-02~4 (leave off the -)? Thus, - implies day (days from the start) of the month, ~ implies days from the end of the

Re: [systemd-devel] [PATCH] Set StopWhenUnneeded=no, if unit started manually

2013-02-04 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Feb 02, 2013 at 08:40:22PM +0200, Oleksii Shevchuk wrote: Current one: - If StopWhenUnneeded=yes and RequiredBy=, WantedBy=, BoundBy= empty Then stop unit. The side effect is: - If user starts unit, that not wanted by any started target, then unit will be immediately

Re: [systemd-devel] Feature request: schedule jobs for last day of month

2013-02-04 Thread Dave
In the year 2013, of the month of February, on the 4th day, Larry Baker wrote: What about 2012-02~4 (leave off the -)? Thus, - implies day (days from the start) of the month, ~ implies days from the end of the month. Nice. I like this one. Simple, neat, and feels right. The tilde is

Re: [systemd-devel] [PATCH] core: reuse the same /tmp and /var/tmp

2013-02-04 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 04, 2013 at 11:58:30AM +, Colin Guthrie wrote: [and the crowd goes wild!] Thanks for this work. I've also had a few bug reports about this one. 'Twas brillig, and Michal Sekletar at 02/02/13 09:10 did gyre and gimble: thank you very much for the review, it is very

Re: [systemd-devel] Feature request: schedule jobs for last day of month

2013-02-04 Thread Frederick Grose
On Mon, Feb 4, 2013 at 8:42 PM, Dave d...@flex.com.au wrote: In the year 2013, of the month of February, on the 4th day, Larry Baker wrote: What about 2012-02~4 (leave off the -)? Thus, - implies day (days from the start) of the month, ~ implies days from the end of the month. Nice. I

Re: [systemd-devel] python - reading the journal

2013-02-04 Thread Zbigniew Jędrzejewski-Szmek
Hi, On Mon, Feb 04, 2013 at 10:42:02PM +, Steven Hiscocks wrote: I've made the suggested changes and pushed it to github. Feedback welcomed :) Thanks! Some more thoughts on the API below. Some of those are probably stupid, but I want to throw them out in the open, for your feedback.

Re: [systemd-devel] build failures in latest master from d848b9cbfa0ba72381363accce481600169df2eb

2013-02-04 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jan 31, 2013 at 07:21:27PM -0500, Colin Walters wrote: Using -Wl,--gc-sections helps a lot, but still. We could just put it in a private path like /usr/lib/systemd/libsystemd-shared.so. I have been wanting to do something like that for a long while. I thought it would be much more