Re: [systemd-devel] binding tmpfiles.d to unit startup

2014-03-03 Thread Holger Schurig
Make it more user friendly (e.g. without an open man page). Instead of u root 0 g mail /usr/bin/procmail g tty /usr/bin/write d /var/lib/foobar 664 root root c /etc/sudoers /usr/share/sudo/sudoers.default user root 0 setgroup mail /usr/bin/procmail ... and so on. Hmm,

Re: [systemd-devel] [PATCH] backlight: don't hardcode path in binary

2014-02-25 Thread Holger Schurig
Hmm, why should it be configurable? Isn't one (of the many) purposes of systemd to unify the user-space of Linux? And we don't have /lib/systemd/system-sleep/ configurable either, for example. ___ systemd-devel mailing list

Re: [systemd-devel] systemd-networkd on by default?

2014-02-21 Thread Holger Schurig
I agree with Harald. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] install: Do not enable systemd-networkd by default

2014-02-21 Thread Holger Schurig
True, but this requires manual patching and fixing up of `make install`, which is a bummer. Why? Your debian/rules or rpmspec %build can simply do something like this: make install rm -f ${DEST}/etc/systemd/system/FOOO.BAR that is much easier than quilt patches that modify

Re: [systemd-devel] [PATCH] Add setns() functions if not in the C library.

2014-02-20 Thread Holger Schurig
Compilation works okay here. And make check said PASS: test-namespace. The change I made is to complain if __NR_setns is not defined. The approach with an error message (at runtime) was taken from iproute2. I used that because for many (desktop) users namespace support isn't really needed. So

[systemd-devel] Compilation error on Debian

2014-02-20 Thread Holger Schurig
I'm on Debian 7.4 (the current stable one), gcc is gcc (Debian 4.7.2-5) 4.7.2. I get lots of warnings, but also a compilation error. I also get one warning at autogen time and one warning at configure time. For the compilation error: I have libc6-dev in version 2.13-38+deb7u1. Doesn't that one

Re: [systemd-devel] Compilation error on Debian

2014-02-20 Thread Holger Schurig
You need glibc = 2.14 Two notes: * than ./configure should say so * that cuts out Debian Stable from the dance, which is probably with us for 2 years ... ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

[systemd-devel] [RFC] make static_assert() run without warnings

2014-02-20 Thread Holger Schurig
Make C++11 static_assert work without warning by using C99 _Pragma() as well. --- NOTE: this patch is probably whitespace damaged, because I'm pasting it in via Google's web interface. I declared this patch as RFC because I'm unsure how clang behaves on it. Index:

[systemd-devel] systemd from git doesn't work with g-object-introspection 1.32.1

2014-02-20 Thread Holger Schurig
Compilation on Debian Stable, this happens during a make: GISCAN src/gudev/GUdev-1.0.gir Usage: g-ir-scanner [options] sources g-ir-scanner: error: no such option: -W ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] Compilation error on Debian

2014-02-20 Thread Holger Schurig
Okay, that's easy enought. Can you tell me if ./test-namespace is all I need to test it? Or do I have to install the compile systemd and create a service file with namespace stuff in it? ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

[systemd-devel] [PATCH] Remove static_assert related warnings

2014-02-20 Thread Holger Schurig
Make macro assert_cc() not emit declaration after statements warnings. This can be done by using the GCC pragmas 'diagnostic ignore undefined'. In order to be able to use that pragma inside a macro, we need to put it into the (C99-introduced) _Pragma() pseudo-function. --- src/shared/macro.h |

[systemd-devel] [PATCH] Add setns() functions if not in the C library.

2014-02-20 Thread Holger Schurig
Debian Stable is still using glibc 2.13, which doesn't provide the setns(). So we detect this and provide a tiny wrapper that issues the setns syscall towards the kernel. --- configure.ac |3 +++ src/shared/missing.h | 13 + 2 files changed, 16 insertions(+) diff --git

Re: [systemd-devel] systemd from git doesn't work with g-object-introspection 1.32.1

2014-02-20 Thread Holger Schurig
$ make -j1 V=1 make --no-print-directory all-recursive Making all in . /usr/bin/g-ir-scanner --c-include=gudev/gudev.h --namespace=GUdev --nsversion=1.0 --libtool=/bin/bash ./libtool --include=GObject-2.0 --library=libgudev-1.0.la --pkg-export=gudev-1.0 --warn-all -pipe -Wall -Wextra

Re: [systemd-devel] [PATCH] udev: Adding zram to inappropriate block device

2014-02-03 Thread Holger Schurig
with unit type ending in .zswap No, not another unit type. Instead better amend .swap unit types to also know about ZRAM. However, isn't this a bit early? Shouldn't move ZRAM first move out of staging? ___ systemd-devel mailing list

Re: [systemd-devel] Installing gitlab

2014-01-23 Thread Holger Schurig
Maybe this script *needs* a tty? Maybe it doesn't run as user git, e.g. wrong rights, wrong home directory? Try to put a set -x at the top of the script and restart it, then you'll see where it failed. Then, look into that program and find out why it failed. If in doubt, pepper it with debug

Re: [systemd-devel] Installing gitlab

2014-01-23 Thread Holger Schurig
Marwan, he specified it, see above the line directly after [Service] [Service] Type=forking User=git WorkingDirectory=/var/www/gitlab Environment=RAILS_ENV=production One thing that makes me wonder is however his sidekick.target thingy. It says that Redis and Postgresql should be started,

[systemd-devel] Is masking an error?

2014-01-21 Thread Holger Schurig
Hi, on my systemd v208 + many patches from the Fedora 21 source RPM i get TWO error messages in my journal when I login as root: 09:27:58 systemd-logind[118]: Failed to start unit user@0.service: Unit user@0.service failed to load: No such file or directory. 09:27:58 systemd-logind[118]: Failed

Re: [systemd-devel] Is masking an error?

2014-01-21 Thread Holger Schurig
Thomas, logind in conjunction with udev's tagging also sets some device ACLs correctly, which I like. I also like that I can have a protection to not reboot my system while a user is active. So I'm not ready to get rid of logind completely. I'd actually have used user sessions if starting a

Re: [systemd-devel] Is masking an error?

2014-01-21 Thread Holger Schurig
I'd actually have used user sessions Not sure if I'd translate to I would have actually used. But that is what I meant :-) ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] consider renaming -.slice

2014-01-16 Thread Holger Schurig
systemd-journalctl and systemd-systemctl were also renamed to get more convenient ... (But hey, I don't really know what external stuff uses -.slice and -.mount ...) ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] consider renaming -.slice

2014-01-16 Thread Holger Schurig
Oh, I confused that with the old /etc/systemd/systemd-journald.conf file, which was renamed. Kay, I only meant to special case the /, e.g. let home-kay-data.mount be it like it is, but rename - to root, so that it is root.mount and root.slice. ___

[systemd-devel] understanding list-unit-files ...

2014-01-15 Thread Holger Schurig
There is one strange thing here: root@desktop:/etc# systemctl list-unit-files | grep multi multi-user.targetdisabled root@desktop:/etc# systemctl status multi-user.target multi-user.target - Multi-User System Loaded: loaded (/lib/systemd/system/multi-user.target; disabled)

Re: [systemd-devel] systemd hangs after Welcome message when LogLevel=debug

2014-01-15 Thread Holger Schurig
Educated guess (!) With LogLevel=debug, you generate huge amounts of output. With DefaultStandardOutput=syslog, you're asking systemd to send it's output to syslog. But while systemd is starting your system the syslog might not be ready. Probably systemd has some buffer, where it buffers the

Re: [systemd-devel] understanding list-unit-files ...

2014-01-15 Thread Holger Schurig
I did not want to disable multi-user.target at all. It's perfectly running, just as intended. I just want to ask why list-unit-files reports erraneous junk. man systemctl is very brief on it's output: list-unit-files List installed unit files. Maybe it would be better to

Re: [systemd-devel] systemctl reboot/shutdown freezes client

2014-01-15 Thread Holger Schurig
Try systemctl --force reboot. The --force will kill the processes, which (for me) closes the incoming ssh session. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] Fix: can not pass configure by default kmod build option

2014-01-15 Thread Holger Schurig
Chengwai, given that kmod may not available in some distro version I'm on Debian and use my self-compiled systemd v208 with a self-made kmod_15.deb file. Packaging kmod is dead easy, it's a very straightforward package. Using the newest kmod doesn't hurt Debian Stable nor Debian SID. So the

[systemd-devel] consider renaming -.slice

2014-01-15 Thread Holger Schurig
Please consider renamign -.slice, because this sucks: # cd /lib/systemd/system # grep -r user@ * grep: invalid option -- '.' Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. Yes, I know that I can use grep -r -- user@ *, but this is just inconvenient.

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

2014-01-11 Thread Holger Schurig
Waa, all of these tenthousand bus proxies ... ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Starting in a network name?

2014-01-06 Thread Holger Schurig
Hi, I used ip netns commands to setup several network namespaces. Now I want to run a user-space (non-root) in one of those netspaces. ip netns exec NAME COMMAND seems to only work for root, not normal users. Is there a way to configure a systemd unit to run in a *specific* network namespace? I

Re: [systemd-devel] [RFT] DHCPv4 support in networkd

2014-01-02 Thread Holger Schurig
AFAIK Mac OSX does a trick here: it uses the last IP (still in the old lease file) and immediately configures the network with that. *) Then it does the DHCP, asking for the same IP. If the IP returned was changed, it will re-change. But usually it's the same IP address, and therefore on this OS

[systemd-devel] [Bug] minor typo on systemd wiki page

2014-01-02 Thread Holger Schurig
On http://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/ To create and start a unit in the cgroup tree use the StartTransientUnit() method on the Manager object exposed by systemd's PID 1 on the bus, see the Bus API Documentation for details. This call takes for arguments.

[systemd-devel] /etc/machine-id handling in a non-initrd / embedded environment ?!?!

2013-12-27 Thread Holger Schurig
Hi all, I'm using systemd for embedded devices. The kernel is compiled for the target and I don't need / use an initrd, as all device drivers are known beforehand and I like the faster boot speed. That means that / is mounted read-only when systemd starts. However, systemd (and also journald, as

Re: [systemd-devel] /etc/machine-id handling in a non-initrd / embedded environment ?!?!

2013-12-27 Thread Holger Schurig
I was in error about this: 3. Now it tries to generate a machine ID and tries to write it into /run/machine-id. Again this fails, because /run is still on the same partition as /, and it is still not writable. FAIL ! When there is no writable or readable /etc/machine-id, then it won't even

Re: [systemd-devel] /etc/machine-id handling in a non-initrd / embedded environment ?!?!

2013-12-27 Thread Holger Schurig
If I place an empty /etc/machine-id into the image, then /run/machine-id will be bind-mounted over it. But that file will be different whenever I boot. So obviously I want to save it, once my filesystem is fsck'd and mounted read-write. But if I do it like that ... umount /etc/machine-id cp

Re: [systemd-devel] /etc/machine-id handling in a non-initrd / embedded environment ?!?!

2013-12-27 Thread Holger Schurig
Maybe sd_id128_get_machine() could try first to read /etc/machine-id and use that. If it doesn't exist, it could read /run/machine-id and use that. If that doesn't exist we're doomed *) That would allow some save-code like this (quick'n'dirty untested) [Unit] Description=Save machine-id