Re: [systemd-devel] [PATCH] build-sys: use correct cpp

2012-07-26 Thread Peeters Simon
The patch seems line-wrapped and did not apply directly. damn you gmail. I've committed it, please check. seems correct, thanks. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] [PATCH] Move path to the right to mitigate alignment issues with untruncated paths. Add --full option (like systemctl) to skip all truncation.

2012-07-26 Thread Zbigniew Jędrzejewski-Szmek
On 07/26/2012 02:55 AM, David Strauss wrote: Sorry, looks like I stacked this on my other batch-friendliness patches. Happy to re-roll if that's an issue. On Wed, Jul 25, 2012 at 5:54 PM, da...@davidstrauss.net wrote: From: David Strauss da...@davidstrauss.net Hi, I'm not sure if this the

Re: [systemd-devel] [PATCH 2/2] Add a 'b' option to cgtop, equivalent to the same option in top.

2012-07-26 Thread Zbigniew Jędrzejewski-Szmek
On 07/26/2012 01:35 AM, David Strauss wrote: Actually, the continue could probably get rolled into the else clause in the main loop. On Wed, Jul 25, 2012 at 4:33 PM, da...@davidstrauss.net wrote: From: David Strauss da...@davidstrauss.net --- src/cgtop/cgtop.c | 30

[systemd-devel] [PATCH] cgtop: use full terminal width

2012-07-26 Thread Zbigniew Jędrzejewski-Szmek
--- src/cgtop/cgtop.c | 10 +++--- src/shared/util.c | 31 --- src/shared/util.h | 1 + 3 files changed, 32 insertions(+), 10 deletions(-) diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 3009589..fde31b9 100644 --- a/src/cgtop/cgtop.c +++

Re: [systemd-devel] [PATCH] Move path to the right to mitigate alignment issues with untruncated paths. Add --full option (like systemctl) to skip all truncation.

2012-07-26 Thread David Strauss
On Thu, Jul 26, 2012 at 11:29 AM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: I'm not sure if this the right approach: would just using full terminal width work for you? Can you try the following patch? Yes, that's why I made this change third. It's certainly the most disruptive. My

Re: [systemd-devel] [PATCH] cgtop: use full terminal width

2012-07-26 Thread David Strauss
Let's definitely add this in. This is the better direction to go. I'll follow-up with a --full addition to this for script-ability. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] [PATCH] cgtop: use full terminal width

2012-07-26 Thread David Strauss
On Thu, Jul 26, 2012 at 12:04 PM, David Strauss da...@davidstrauss.net wrote: Let's definitely add this in. This is the better direction to go. I'll follow-up with a --full addition to this for script-ability. This patch doesn't properly adjust header positions. -- David Strauss |

[systemd-devel] [PATCH] Fix title positions for dynamic column widths.

2012-07-26 Thread david
From: David Strauss da...@davidstrauss.net --- src/cgtop/cgtop.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index fde31b9..33e78b0 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -450,13 +450,13 @@ static int

Re: [systemd-devel] [PATCH] Fix title positions for dynamic column widths.

2012-07-26 Thread David Strauss
This stacks on top of Zbyszek's patch to fix column title alignment. On Thu, Jul 26, 2012 at 1:42 PM, da...@davidstrauss.net wrote: From: David Strauss da...@davidstrauss.net --- src/cgtop/cgtop.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

Re: [systemd-devel] [PATCH] cgtop: use full terminal width

2012-07-26 Thread David Strauss
On Thu, Jul 26, 2012 at 1:32 PM, David Strauss da...@davidstrauss.net wrote: This patch doesn't properly adjust header positions. Posted a follow-up patch fixing this. -- David Strauss | da...@davidstrauss.net | +1 512 577 5827 [mobile] ___

Re: [systemd-devel] [PATCH] Fix title positions for dynamic column widths.

2012-07-26 Thread Zbigniew Jędrzejewski-Szmek
On 07/26/2012 10:46 PM, David Strauss wrote: This stacks on top of Zbyszek's patch to fix column title alignment. Applied. Zbyszek ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] mounting a UBIFS filesystem

2012-07-26 Thread Cliff Brake
Below is what I ended up with. Let me know if there are better/more standard ways to do this. Thanks, Cliff my-app.service: Wants=data.mount data.mount: [Unit] Description=Mount data partition Requires=data-attach.service

Re: [systemd-devel] [PATCH] systemd: enable/disable instances of template

2012-07-26 Thread Michal Schmidt
On 07/13/2012 03:59 PM, Michal Sekletar wrote: https://bugzilla.redhat.com/show_bug.cgi?id=752774 --- man/systemctl.xml | 33 +++- src/shared/install.c | 78 +--- src/shared/unit-name.c | 12

Re: [systemd-devel] [PATCH] use Out of memory. consistantly (or with \n)

2012-07-26 Thread Kay Sievers
On Thu, Jul 26, 2012 at 1:17 AM, shawn shawnland...@gmail.com wrote: On Wed, 2012-07-25 at 18:11 +0200, Lennart Poettering wrote: On Wed, 25.07.12 11:24, Kay Sievers (k...@vrfy.org) wrote: On Wed, Jul 25, 2012 at 6:12 AM, Shawn Landden shawnland...@gmail.com wrote: glibc/glib both use

[systemd-devel] Newbie systemd-related question - how to run a service w/o anything but network?

2012-07-26 Thread Peter Lemenkov
Hello All. I'm trying to write a systemd service for epmd (Erlang Port Mapper Daemon, if someone is curious). its only purpose is to open a TCP port 4369 at 0.0.0.0 and act as a simple messaging (very simple actually) bus between erlang nodes. I'd like to run it w/o anything and under a most

Re: [systemd-devel] [HEADSUP] fstab now parsed by generator in systemd git

2012-07-26 Thread Kay Sievers
On Wed, Jul 25, 2012 at 8:31 PM, Manuel Amador (Rudd-O) rud...@rudd-o.com wrote: Inotify? Calls systemd? Parses again? Dome already? In the above paragraph almost all wrong. Well, I did not check the code. But when the generator creates the unit in /run, it must be notified somehow to

[systemd-devel] sd_get_uids gives a sorted list?

2012-07-26 Thread Stef Bon
Hi, I'm implementing the sd_get_uids function in my app. It basically reads the directory /run/systemd/users. I do not know, is this list already sorted?? this is the same question as is the readdir function sort sensitive? If not, I have to add a sort function. Stef

Re: [systemd-devel] sd_get_uids gives a sorted list?

2012-07-26 Thread Joachim Banzhaf
The man page does not document a sort order so I wouldn't rely on it. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] build-sys: src/core/syscall-list.txt generated with wrong cpp when cross-compiling

2012-07-26 Thread Peeters Simon
when cross-compiling src/core/syscall-list.txt still gets generated by the build cpp (because it is hard coded as '$(AM_V_GEN)cpp $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/syscall.h ') the problem arises when the build cpp and host cpp have different default locations for includes (which is the

[systemd-devel] Systemd-timedated-ntp.target removal question.

2012-07-26 Thread Apostolos Bartziokas
First of sorry for bringing this to the devel mailing list but there is no user mailing list for trivial questions. After the removal of systemd-timedated-ntp.target my tty1 hangs at Starting Network Time with a blinking cursor under it. It also broke Gnome Network time but thats a gnome

Re: [systemd-devel] sd_get_uids gives a sorted list?

2012-07-26 Thread Kay Sievers
On Thu, Jul 26, 2012 at 2:16 PM, Stef Bon stef...@gmail.com wrote: I'm implementing the sd_get_uids function in my app. It basically reads the directory /run/systemd/users. I do not know, is this list already sorted?? this is the same question as is the readdir function sort sensitive?

Re: [systemd-devel] build-sys: src/core/syscall-list.txt generated with wrong cpp when cross-compiling

2012-07-26 Thread Kay Sievers
On Thu, Jul 26, 2012 at 3:14 PM, Peeters Simon peeters.si...@gmail.com wrote: when cross-compiling src/core/syscall-list.txt still gets generated by the build cpp (because it is hard coded as '$(AM_V_GEN)cpp $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/syscall.h ') the problem arises when the

Re: [systemd-devel] sd_get_uids gives a sorted list?

2012-07-26 Thread Stef Bon
2012/7/26 Kay Sievers k...@vrfy.org: On Thu, Jul 26, 2012 at 2:16 PM, Stef Bon stef...@gmail.com wrote: I'm implementing the sd_get_uids function in my app. It basically reads the directory /run/systemd/users. I do not know, is this list already sorted?? this is the same question as is the

[systemd-devel] [PATCH] build-sys: use correct cpp

2012-07-26 Thread Peeters Simon
this solves issues where $(CPP) has differend include paths than 'cpp' --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 27666ea..86f2b11 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1028,7 +1028,7 @@ BUILT_SOURCES += \

Re: [systemd-devel] build-sys: src/core/syscall-list.txt generated with wrong cpp when cross-compiling

2012-07-26 Thread Peeters Simon
Does $(CPP) make it work? with the addition of a dash to read from stdin it works, see patch (cpp defauts to stdin, but gcc -E does not) ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] Newbie systemd-related question - how to run a service w/o anything but network?

2012-07-26 Thread Zbigniew Jędrzejewski-Szmek
On 07/26/2012 12:09 PM, Peter Lemenkov wrote: Hello All. I'm trying to write a systemd service for epmd (Erlang Port Mapper Daemon, if someone is curious). its only purpose is to open a TCP port 4369 at 0.0.0.0 and act as a simple messaging (very simple actually) bus between erlang nodes. I'd

Re: [systemd-devel] [PATCH] build-sys: use correct cpp

2012-07-26 Thread Kay Sievers
On Thu, Jul 26, 2012 at 3:41 PM, Peeters Simon peeters.si...@gmail.com wrote: this solves issues where $(CPP) has differend include paths than 'cpp' --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) The patch seems line-wrapped and did not apply directly. I've