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 After=data-atta

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 [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-

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 wrote: > This patch doesn't properly adjust header positions. Posted a follow-up patch fixing this. -- David Strauss | [email protected] | +1 512 577 5827 [mobile] ___ systemd-devel mailing lis

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, wrote: > From: David Strauss > > --- > 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 f

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

2012-07-26 Thread david
From: David Strauss --- 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 display(Hashmap *a) {

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 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 | [email protected] | +

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 [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-de

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 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 two goals are: *

[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 +++ b/src/cgtop/cgto

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, wrote: >> From: David Strauss >> >> --- >> src/cgtop/cgtop.c | 30 +++--- >> 1 file changed, 2

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, wrote: >> From: David Strauss Hi, I'm not sure if this the right approach: would just using full te

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 [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-

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 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 committed it, please check.

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.

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 [email protected] http://lists.freedesktop.org/mailman/listinfo/sy

[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] sd_get_uids gives a sorted list?

2012-07-26 Thread Stef Bon
2012/7/26 Kay Sievers : > On Thu, Jul 26, 2012 at 2:16 PM, Stef Bon 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"

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 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 build cpp and hos

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 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? readdir() in many

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

[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

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 [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[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] [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) 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, no? Isn't

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

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 wrote: > On Wed, 2012-07-25 at 18:11 +0200, Lennart Poettering wrote: >> On Wed, 25.07.12 11:24, Kay Sievers ([email protected]) wrote: >> > On Wed, Jul 25, 2012 at 6:12 AM, Shawn Landden >> > wrote: >> > > glibc/glib both use "out of memory" consistantly so ma

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 src/shared/unit-na

Re: [systemd-devel] mounting a UBIFS filesystem

2012-07-26 Thread Koen Kooi
Op 25 jul. 2012, om 21:35 heeft Cliff Brake het volgende geschreven: > Hello, > > I'm trying to figure out how to mount a UBI filesystem in systemd. > > One wrinkle is I need to run: > > ubiattach /dev/ubi_ctrl -m 6 > > before the file system is mounted. > > 1) what is the best way to run

Re: [systemd-devel] [PATCH] systemd: added new dependency PartOf

2012-07-26 Thread Michal Schmidt
On 07/20/2012 03:55 PM, Michal Sekletar wrote: This should address TODO item "new dependency type to "group" services in a target". Semantic of new dependency is as follows. Once configured it creates dependency which will cause that all dependent units get stopped if unit they all depend on is s