Re: [systemd-devel] [PATCH] [RFC] Move handling of sysv initscripts to a generator

2014-05-27 Thread Peeters Simon
2014-05-28 1:12 GMT+02:00 Thomas H.P. Andersen pho...@gmail.com: From: Thomas Hindoe Paaboel Andersen pho...@gmail.com Reuses logic from service.c and the rc-local generator. Note that this drops reading of chkconfig entirely. It also drops reading runlevels from the LSB headers. The

Re: [systemd-devel] kdbus and 32bit architectures

2014-02-20 Thread Peeters Simon
2014-02-20 3:48 GMT+01:00 Greg KH gre...@linuxfoundation.org: On Thu, Feb 20, 2014 at 03:19:09AM +0100, Peeters Simon wrote: 2014-02-19 21:03 GMT+01:00 Peeters Simon peeters.si...@gmail.com: 2014-02-19 20:41 GMT+01:00 Kay Sievers k...@vrfy.org: On Wed, Feb 19, 2014 at 8:34 PM, Peeters Simon

Re: [systemd-devel] kdbus and 32bit architectures

2014-02-20 Thread Peeters Simon
2014-02-20 3:43 GMT+01:00 Kay Sievers k...@vrfy.org: On Thu, Feb 20, 2014 at 3:19 AM, Peeters Simon peeters.si...@gmail.com wrote: Where is it defined on arm? There is an include in kdbus.h. the problem is that it is #ifndef __KERNEL__ and I assume that __KERNEL__ gets defined when

[systemd-devel] kdbus and 32bit architectures

2014-02-19 Thread Peeters Simon
hej This weekend I switched 2 of my devices to kdbus. both running a 32bit system (my atom based netbook and a beaglebone black) while compiling I ran in to trouble on both devices because of missing division and modulo operations for uint64, both related to bloom.size in match.c. So my

Re: [systemd-devel] kdbus and 32bit architectures

2014-02-19 Thread Peeters Simon
2014-02-19 20:41 GMT+01:00 Kay Sievers k...@vrfy.org: On Wed, Feb 19, 2014 at 8:34 PM, Peeters Simon peeters.si...@gmail.com wrote: This weekend I switched 2 of my devices to kdbus. both running a 32bit system (my atom based netbook and a beaglebone black) while compiling I ran

Re: [systemd-devel] kdbus and 32bit architectures

2014-02-19 Thread Peeters Simon
2014-02-19 21:03 GMT+01:00 Peeters Simon peeters.si...@gmail.com: 2014-02-19 20:41 GMT+01:00 Kay Sievers k...@vrfy.org: On Wed, Feb 19, 2014 at 8:34 PM, Peeters Simon peeters.si...@gmail.com wrote: This weekend I switched 2 of my devices to kdbus. both running a 32bit system (my atom based

Re: [systemd-devel] recipe for target 'dbus1-generator-install-hook' failed

2014-02-14 Thread Peeters Simon
2014-02-14 1:56 GMT+01:00 Lennart Poettering lenn...@poettering.net: On Thu, 13.02.14 22:26, Simon Peeters (peeters.si...@gmail.com) wrote: Thanks! Applied! thanks Please always send these things are proper git patches (and not linebroken, please!), so that I can immediately apply them!

[systemd-devel] recipe for target 'dbus1-generator-install-hook' failed

2014-02-13 Thread Peeters Simon
hello all, I usually run systemd from git using the arch aur package systemd-git and yaourt to compile and install this, but this currently fails with LN dbus1-generator-install-hook what= wants=runlevel3.target dir=/usr/lib/systemd/system [ -z $what ] || (

Re: [systemd-devel] .socket in a network namespace

2014-01-23 Thread Peeters Simon
2014/1/23 David Timothy Strauss da...@davidstrauss.net: Has anyone looked at using socketat() for this? It's unclear whether that syscall actually exists in any supported form; it's certainly not documented. [1] http://lwn.net/Articles/407495/ grep -ir socketat linux-3.12 doesn't return

Re: [systemd-devel] daemon-reload seems racy

2014-01-20 Thread Peeters Simon
2014/1/20 Colin Guthrie gm...@colin.guthr.ie: CC'ing Zbigniew as he's working on the Fedora bug AFAIK. 'Twas brillig, and Lennart Poettering at 20/01/14 12:37 did gyre and gimble: On Thu, 16.01.14 12:28, Colin Guthrie (gm...@colin.guthr.ie) wrote: 'Twas brillig, and Colin Guthrie at

Re: [systemd-devel] .socket in a network namespace

2014-01-18 Thread Peeters Simon
2014/1/18 Alex Polvi a...@polvi.net: Hello, Is there a way to have a .socket bind in a particular network namespace? The use case is to have a container with isolated networking be able to start a service, or tunnel to a remote service, that exists outside the containers namespace. Thank

[systemd-devel] systemd-bus-proxyd causes hang in connman

2014-01-06 Thread Peeters Simon
hej, recently I tried to switch my system to kdbus and systemd-bus-proxy. But the only dbus based daemon (except for systemd) which I care about (connman) seems to hang on startup, and connmanctl aborts with an error in libdbus-1 (dbus message iterator is NULL) the journal does not contain

Re: [systemd-devel] [PATCH 5/5] strv: multiple cleanups

2014-01-05 Thread Peeters Simon
2014/1/5 Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl: Looks great, except for one issue: On Sat, Jan 04, 2014 at 02:35:27AM +0100, Simon Peeters wrote: @@ -1865,14 +1863,11 @@ finish: watchdog_close(false); /* Tell the binary how often to

[systemd-devel] Assertion 'fd == 3 + count' failed at activate.c:115

2013-12-08 Thread Peeters Simon
hej, when i try to run systemd-activate from the latest git i get an assertion failiure: [simon@troela server]$ /usr/lib/systemd/systemd-activate -l 9000 main.js Assertion 'fd == 3 + count' failed at src/activate/activate.c:115, function open_sockets(). Aborting. Aborted (core dumped) this is

Re: [systemd-devel] Assertion 'fd == 3 + count' failed at activate.c:115

2013-12-08 Thread Peeters Simon
2013/12/8 Peeters Simon peeters.si...@gmail.com: hej, when i try to run systemd-activate from the latest git i get an assertion failiure: [simon@troela server]$ /usr/lib/systemd/systemd-activate -l 9000 main.js Assertion 'fd == 3 + count' failed at src/activate/activate.c:115, function

[systemd-devel] [RFC] xyzctl-common

2013-11-16 Thread Peeters Simon
hello all, During the sd_bus porting I noted that the *ctl tools (and systemd-analyze) contain a lot of common boilerplate code. So the basic idea is to split this boilerplate out into xyzctl-common.[ch] so that f.ex the bottom hostnamectl.c would look like: ... static void help(void ) {...}

Re: [systemd-devel] [RFC] xyzctl-common

2013-11-16 Thread Peeters Simon
2013/11/16 Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl: On Sat, Nov 16, 2013 at 07:41:13PM +0100, Peeters Simon wrote: hello all, During the sd_bus porting I noted that the *ctl tools (and systemd-analyze) contain a lot of common boilerplate code. So the basic idea is to split

Re: [systemd-devel] [PATCH 1/2] bus-util: add ssh and polkit connection methods

2013-10-30 Thread Peeters Simon
2013/10/30 Simon Peeters peeters.si...@gmail.com: bus_connect_system_ssh is shamelessly copied from Tom Gundersen's wip patches Aparently i am 3 hours late to the party, so only the polkit part from this patch is needed --- src/libsystemd-bus/bus-util.c | 61

Re: [systemd-devel] tree-wide conversion from libdbus to libsystemd-bus

2013-10-29 Thread Peeters Simon
. - timedatectl - systemd-logind - loginctl Peeters Simon: I'll take ... (probably loginctl afterwards) - localectl Kay will do that next - hostnamectl - pam_systemd Zbigniew: I'll do pam_systemd - systemctl - systemd ___ systemd-devel

Re: [systemd-devel] tree-wide conversion from libdbus to libsystemd-bus

2013-10-23 Thread Peeters Simon
2013/10/23 Kay Sievers k...@vrfy.org: Most of the original plan outlined a couple of months ago is still valid: http://lists.freedesktop.org/archives/systemd-devel/2013-March/009797.html We now have all the major pieces to port to the new library available in the systemd tree. Converting

Re: [systemd-devel] Problems with SWAP in 204

2013-06-19 Thread Peeters Simon
2013/6/19 Henrik /KaarPoSoft hen...@kaarposoft.dk: Dear all, hei, I am experiencing a strange problem with swap using systemd 204. Any help in diagnosing this would be most appreciated. I have 64 GB of physical memory, and two 64 GB swap partitions. Do these have the same partlabel? I

Re: [systemd-devel] Text input on startup (tty-force) disabling after a few seconds

2013-06-19 Thread Peeters Simon
2013/6/19 Natanji nata...@gmail.com: Hi everyone, I'm somewhat new to systemd and have a problem. I would like to run a custom script with systemd on startup that will ask me for a password and mount a Truecrypt volume with it. The script and unit file I wrote can be found below. Now, this

[systemd-devel] typo? path-util: unify code for detecting OS trees

2013-04-17 Thread Peeters Simon
while reading random patches in cgit I saw (in commit 6606089752df90f3eeb4924af109046f1c73554c) ... diff --git a/src/shared/util.h b/src/shared/util.h index 3aac165..cfb5493 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -684,3 +684,15 @@ int unlink_noerrno(const char *path);

Re: [systemd-devel] typo? path-util: unify code for detecting OS trees

2013-04-17 Thread Peeters Simon
while reading random patches in cgit I saw (in commit 6606089752df90f3eeb4924af109046f1c73554c) ... diff --git a/src/shared/util.h b/src/shared/util.h index 3aac165..cfb5493 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -684,3 +684,15 @@ int unlink_noerrno(const char

[systemd-devel] bus: suggestion for reading trough variants

2013-04-08 Thread Peeters Simon
hey, While experimenting a bit with the really nice api of libsystemd-bus (seriously, I love it), I came across an idea that would probably make using the library even easier. The idea is to be able to read trough a variant using sd_bus_message_read() f.ex you get a message with signature sv

Re: [systemd-devel] bus: suggestion for reading trough variants

2013-04-08 Thread Peeters Simon
what I would like to be able to do is something like this: sd_bus_message_read(m, sv+s, first, second); oops, while reading the code i found out that this is already possible and that the syntax is sd_bus_message_read(m, sv, first, s, second); so thank you very much :)

Re: [systemd-devel] RFC: user session lifetimes vs. $DISPLAY

2013-02-22 Thread Peeters Simon
2013/2/20 Simon McVittie simon.mcvit...@collabora.co.uk: On 19/02/13 23:55, Peeters Simon wrote: or just use a systemd generater to generate systemd .service files from the dbus service files. (i have something like this laying around slightly unfinished if you want code, let me know

Re: [systemd-devel] RFC: user session lifetimes vs. $DISPLAY

2013-02-19 Thread Peeters Simon
2013/2/18 Simon McVittie simon.mcvit...@collabora.co.uk: [...] I've started prototyping what would be needed for `systemd --user` to track logind sessions, pick up the new $DISPLAY every time the user's set of sessions changes, and use that for all new activations. If not every session D-Bus

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] Recommendation for systemd.module unit

2013-01-24 Thread Peeters Simon
2013/1/24 Larry Baker ba...@usgs.gov: ... Then it looks for evidence that the decnet kernel module is loaded by testing for the file /proc/net/decnet. If necessary, it loads the decnet kernel module and checks again for /proc/net/decnet. I have already built the decnet kernel module and I

[systemd-devel] [PATCH][RFC][V2] systemd-analyze: rewrite in C. (Was: systemd-analyze-197 broken)

2013-01-20 Thread Peeters Simon
Hej all, Because of the discution about the python dependencies for systemd-analyze I made a rewrite in C. The patch is available from my github repo[1] so please test it. (especially efi systems with gummyboot since I am still stuck with BIOS) What is new about this c implementation? -

Re: [systemd-devel] systemd-analyze-197 broken

2013-01-19 Thread Peeters Simon
2013/1/17 Kok, Auke-jan H auke-jan.h@intel.com: On Tue, Jan 15, 2013 at 9:46 AM, Peeters Simon peeters.si...@gmail.com wrote: done! the code is ugly, but it works :) url is still https://gist.github.com/4539003 i added an example plot from my system: https://gist.github.com/raw

Re: [systemd-devel] systemd-analyze-197 broken

2013-01-15 Thread Peeters Simon
2013/1/15 Peeters Simon peeters.si...@gmail.com: 2013/1/15 Colin Guthrie gm...@colin.guthr.ie: 'Twas brillig, and Kok, Auke-jan H at 14/01/13 23:55 did gyre and gimble: does systemd really need to introduce one 3rd party component after the next (libmicrohttpd as example) which will sooner

Re: [systemd-devel] CoreOS Goal Question: Should we be aiming to be able to boot with an empty /etc?

2013-01-07 Thread Peeters Simon
I was thinking, is it a general stated aim that we should be able to boot with an empty /etc? I know this isn't true today, but with appropriate effort is that where we should be aiming? I have been thinking about this too, and I am even planning on doing some experiments with this. Currently

Re: [systemd-devel] systemd-fstab-generator and multiple mounts to same mount point

2013-01-03 Thread Peeters Simon
2013/1/3 Lennart Poettering lenn...@poettering.net: ... Just changing the generator to output alternate .mount units if a clash happens won't solve your issue btw, because the mount path will still have to be in sync with the mount unit name. And since you cannot have two files with the same

Re: [systemd-devel] [RFC] inconsistent symlink handling

2012-10-24 Thread Peeters Simon
However, there is one issue: * systemctl enable crond.service does not work, but returns Failed to issue method call: No such file or directory. Is this behaviors by design, or a bug? If this can not be solved by making systemctl enable crond.service equivalent to systemctl enable

Re: [systemd-devel] PrivateTmp and systemd-tmpfiles

2012-10-17 Thread Peeters Simon
2012/10/17 Lennart Poettering lenn...@poettering.net: On Wed, 17.10.12 14:16, Lukáš Nykrýn (lnyk...@redhat.com) wrote: Hello, Today I have read this bug https://bugzilla.redhat.com/show_bug.cgi?id=866693 and described systemd-tmpfiles behavior look pretty wrong to me, but I am not sure how

Re: [systemd-devel] when will mount / df get fixed?

2012-10-01 Thread Peeters Simon
so we are turning around in circles there is a bugreport from 2011-05-31 09:19:30 EDT there where many posts more than a year ago on devel-lists YOU say discuss with coreutils-people THEY say requested by systemd guys They are right in that the change was requested by systemd, because it is

Re: [systemd-devel] when will mount / df get fixed?

2012-10-01 Thread Peeters Simon
2012/10/1 Reindl Harald h.rei...@thelounge.net: Am 01.10.2012 15:47, schrieb Peeters Simon: so we are turning around in circles there is a bugreport from 2011-05-31 09:19:30 EDT there where many posts more than a year ago on devel-lists YOU say discuss with coreutils-people THEY say

Re: [systemd-devel] XDM and systemd --user

2012-09-28 Thread Peeters Simon
2012/9/28 Peter Lemenkov lemen...@gmail.com: Hello All! Hello First question - is this a correct way to run systemd --user? I saw a user@.service script but it does requires root permission to run. this is afaik a correct way as long as a single user does not have multiple sessions. Second

Re: [systemd-devel] [ANNOUNCE] systemd 188

2012-08-09 Thread Peeters Simon
Just installing this and logging in with gdm means that my session (as listed in loginctl) is not listed as active (which obviously breaks ACLs etc). If I try and manually activate my session (as my user or root) I get: $ loginctl activate 2 Failed to issue method call: No such device or

Re: [systemd-devel] [PATCH] systemctl: cleanup dbus code.

2012-08-08 Thread Peeters Simon
2012/8/7 Peeters Simon peeters.si...@gmail.com: added a new function: bus_method_call_with_reply which does: dbus_message_new_method_call() dbus_message_append_args() dbus_connection_send_with_reply_and_block() and the needed error handling --- src/systemctl/systemctl.c | 1290

[systemd-devel] [PATCH] build-sys: do not link systemctl against journal-internal and id128-internal

2012-08-03 Thread Peeters Simon
systemctl does not need the internal journal and id128 libraries to function, so don't link them. 0001-build-sys-do-not-link-systemctl-against-journal-inte.patch Description: Binary data ___ systemd-devel mailing list

Re: [systemd-devel] [PATCH] build-sys: do not link systemctl against journal-internal and id128-internal

2012-08-03 Thread Peeters Simon
2012/8/3 Kay Sievers k...@vrfy.org: On Fri, Aug 3, 2012 at 8:02 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On 08/03/2012 07:31 PM, Lennart Poettering wrote: On Fri, 03.08.12 17:14, Peeters Simon (peeters.si...@gmail.com) wrote: systemctl does not need the internal journal

Re: [systemd-devel] [PATCH] build-sys: do not link systemctl against journal-internal and id128-internal

2012-08-03 Thread Peeters Simon
2012/8/4 Peeters Simon peeters.si...@gmail.com: 2012/8/3 Kay Sievers k...@vrfy.org: On Fri, Aug 3, 2012 at 8:02 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On 08/03/2012 07:31 PM, Lennart Poettering wrote: On Fri, 03.08.12 17:14, Peeters Simon (peeters.si...@gmail.com) wrote

[systemd-devel] [RFC] adding udev options to systemctl

2012-08-02 Thread Peeters Simon
hej, Since systemd and udev are one project now it might be an idea to be able to control both daemons with one tool (systemctl) also, since i don't like the way the arguments to udevadm work (very unclear about what is a commando and what an option), i tought maybe we can redo this interface at

Re: [systemd-devel] [RFC] adding udev options to systemctl

2012-08-02 Thread Peeters Simon
2012/8/2 Kay Sievers k...@vrfy.org: On Thu, Aug 2, 2012 at 10:04 PM, Peeters Simon peeters.si...@gmail.com wrote: Since systemd and udev are one project now it might be an idea to be able to control both daemons with one tool (systemctl) We also have journalctl, loginctl, ... systemctl

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

[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] [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] [PATCH] build-sys: really make gtk-doc optional some portability fixes

2012-07-25 Thread Peeters Simon
2012/7/25 Mantas Mikulėnas graw...@gmail.com: The failing check caused autogen.sh to die mysteriously due to `set -e` and the unquoted `test -z $VAR`. Also, some syntax fixes to make it work with /bin/sh, which most other autogen.sh's use. --- autogen.sh | 17 - 1 file

Re: [systemd-devel] systemd based gnome-session

2012-06-25 Thread Peeters Simon
Sorry that i forgot to give credit where credit is due: The code in this program is majorly inspired by: - nodm (this is actually a fork/adaption of an unfinished rewrite of nodm) - user-session by Auke Kok - various tutorials and man page examples Even though this programs functionality is

[systemd-devel] systemd based gnome-session

2012-06-23 Thread Peeters Simon
hej all, I have worked a bit on a systemd based replacement for the gnome-session binary. The code is available at https://github.com/SimonPe/lightSM. Most of the important information is in the readme. If you configure it without the GNOME flag, it should also be portable to other desktop

Re: [systemd-devel] Systemd socket activation of DBus in the user session

2012-06-18 Thread Peeters Simon
2012/6/18 Léo Gillot-Lamure leo.gil...@navaati.net: Hello. I'm trying to get systemd work as the user session supervisor, thus i want it to launch the dbus daemon for the session. Systemd seems to require that dbus is socket activated (service units of Type=dbus have a Require dep on

Re: [systemd-devel] Systemd socket activation of DBus in the user session

2012-06-18 Thread Peeters Simon
also i have been running the patch succesfully (both in system mode and in my systemd-gnome-session (which i will share soon)) for a while now (read: since last week) without any problem. ah nice! is that on systemd HEAD? Love to see the code :^) systemd-185-3.fc18, i dont like building a

[systemd-devel] systemd-udevd: excessive I/O usage

2012-06-04 Thread Peeters Simon
Hello all. while trying to optimize my bootup i noted that i could not squeeze it under 17seconds userspace Looking at the bootchart revealed that this is mainly due to systemd-udevd consuming 60% of my bootup I/O. This means i lose 12 seconds of bootup just to one process. i was wondering

Re: [systemd-devel] systemd-udevd: excessive I/O usage

2012-06-04 Thread Peeters Simon
2012/6/4 Kok, Auke-jan H auke-jan.h@intel.com: On Mon, Jun 4, 2012 at 1:14 PM, Peeters Simon peeters.si...@gmail.com wrote: 2012/6/4 Kok, Auke-jan H auke-jan.h@intel.com: On Mon, Jun 4, 2012 at 12:49 PM, Peeters Simon peeters.si...@gmail.com wrote: Hello all. while trying

Re: [systemd-devel] systemd-udevd: excessive I/O usage

2012-06-04 Thread Peeters Simon
2012/6/4 Kok, Auke-jan H auke-jan.h@intel.com: On Mon, Jun 4, 2012 at 1:48 PM, Peeters Simon peeters.si...@gmail.com wrote: Could you recreate the bootchart, but this time, boot with initcall_debug=1 on the kernel commandline as well? This may provide some hints why your system is taking

Re: [systemd-devel] systemd-udevd: excessive I/O usage

2012-06-04 Thread Peeters Simon
2012/6/4 Kok, Auke-jan H auke-jan.h@intel.com: It seems your system is taking well into 15+ seconds before btrfs is actually *ready* on your system, which seems to be the main hiccup (note, speculation here). I've personally become a bit displeased with btrfs performance recently myself,