Re: [systemd-devel] [PATCH] units: Do not unescape instance name in systemd-backlight@.service

2014-03-06 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Mar 07, 2014 at 01:50:34AM +0100, Thomas Bächler wrote: > The instance name is never escaped in the udev rule, but unescaped in the > unit. > This results in the following error message on Asus boards: > > Failed to get backlight or LED device 'backlight:eeepc/wmi': No such file > or d

Re: [systemd-devel] [PATCH] build-sys: Don't distribute generated udev rule

2014-03-06 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Mar 07, 2014 at 12:13:39AM +0100, Armin K. wrote: > On 03/04/2014 04:23 PM, Armin K wrote: > > It contains hardcoded path to systemd-sysctl executable which > > is /usr/lib/systemd/systemd-sysctl on latest stable release and > > as such it will complain at runtime if rootprefix != prefix >

[systemd-devel] [PATCH] units: Do not unescape instance name in systemd-backlight@.service

2014-03-06 Thread Thomas Bächler
The instance name is never escaped in the udev rule, but unescaped in the unit. This results in the following error message on Asus boards: Failed to get backlight or LED device 'backlight:eeepc/wmi': No such file or directory --- units/systemd-backli...@.service.in | 6 +++--- 1 file changed,

Re: [systemd-devel] Talks comparing systemd and launchd.

2014-03-06 Thread David Timothy Strauss
On Thu, Mar 6, 2014 at 2:57 PM, David Farning wrote: > Now my philosophical sticking point is how big pid1 should be to do > what it needs to do. Practically, I am trying to understand where > those boundaries should be and how to communicate that information. A large amount of systemd's code doe

Re: [systemd-devel] [PATCH] build-sys: Don't distribute generated udev rule

2014-03-06 Thread Armin K.
On 03/04/2014 04:23 PM, Armin K wrote: > It contains hardcoded path to systemd-sysctl executable which > is /usr/lib/systemd/systemd-sysctl on latest stable release and > as such it will complain at runtime if rootprefix != prefix > --- > Makefile.am | 1 - > 1 file changed, 1 deletion(-) > > dif

Re: [systemd-devel] Talks comparing systemd and launchd.

2014-03-06 Thread David Farning
Sorry if it seems that I was criticizing systemd's use of ideas from other projects. That was not my intent. I respect the reuse of proven good ideas. I am trying to get my mind wrapped around how all the the ideas came together. Now my philosophical sticking point is how big pid1 should be to do

Re: [systemd-devel] Talks comparing systemd and launchd.

2014-03-06 Thread David Timothy Strauss
On Mon, Mar 3, 2014 at 5:47 PM, David Farning wrote: > Several of the ground breaking ideas in systemd seem to come directly from > launchd. systemd makes no claim to be original or ground-breaking with many of its ideas. As you mention, some come from launchd. Others come from Solaris service ma

Re: [systemd-devel] [PATCH] man: systemd-bootchart - fix spacing in command

2014-03-06 Thread David Timothy Strauss
Applied. Thanks! ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [systemd][cgroup in container] problem with cgroup hierarchy in container

2014-03-06 Thread Lennart Poettering
On Thu, 06.03.14 16:55, Dariusz Michaluk (d.micha...@samsung.com) wrote: > > On 05.03.2014 19:16, Lennart Poettering wrote: > >nspawn and libvirt-lxc mostly follow the same code paths and register > >via machined... So it's weird that different things happen. Somehow the > >systemd instance insid

Re: [systemd-devel] [systemd][cgroup in container] problem with cgroup hierarchy in container

2014-03-06 Thread Dariusz Michaluk
On 05.03.2014 19:16, Lennart Poettering wrote: nspawn and libvirt-lxc mostly follow the same code paths and register via machined... So it's weird that different things happen. Somehow the systemd instance inside the container must be confused about the cgroup it is running in... Next few cents

[systemd-devel] [PATCH 2/2] [V4] systemctl: for switch-root check, if we switch to a systemd init

2014-03-06 Thread harald
From: Harald Hoyer If "systemctl switch-root" is called with a specific "INIT" or /proc/cmdline contains "init=", then systemd would not serialize itsself. Let systemctl check, if the new init is in the standard systemd installation path and if so, clear the INIT parameter, to let systemd serial

Re: [systemd-devel] [PATCH 2/2] [V3] systemctl: switch-root check, if we switch to a systemd init

2014-03-06 Thread Lennart Poettering
On Thu, 06.03.14 09:12, har...@redhat.com (har...@redhat.com) wrote: > From: Harald Hoyer > > If "systemctl switch-root" is called with a specific "INIT" or > /proc/cmdline contains "init=", then systemd would not serialize > itsself. > > Let systemctl check, if the new init is in the standard

Re: [systemd-devel] [systemd][cgroup in container] problem with cgroup hierarchy in container

2014-03-06 Thread Jacek Pielaszkiewicz
Hi Very sorry. I sent not complete email. Bellow I attached all details for nspawn case: ++ +++ Guset ++ tizen login: root Welcome to Tizen root:~> systemctl show ... DefaultStandardError=journal RuntimeWatchdogUSec=0 ShutdownWatchdogUSec=10min ControlGroup=/machine.sli

Re: [systemd-devel] [PATCH 2/2] [V3] systemctl: switch-root check, if we switch to a systemd init

2014-03-06 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Mar 06, 2014 at 09:12:58AM +0100, har...@redhat.com wrote: > From: Harald Hoyer > > If "systemctl switch-root" is called with a specific "INIT" or > /proc/cmdline contains "init=", then systemd would not serialize > itsself. > > Let systemctl check, if the new init is in the standard sys

Re: [systemd-devel] [systemd][cgroup in container] problem with cgroup hierarchy in container

2014-03-06 Thread Jacek Pielaszkiewicz
Hi In previous mail I putted case for libvirt. In case of nspawn everything works fine (see details below): +++ Guest Jacek Pielaszkiewicz Samsung R&D Institute Poland Samsung Electronics Email: j.pielasz...@samsung.com > -Original Message- >

Re: [systemd-devel] [systemd][cgroup in container] problem with cgroup hierarchy in container

2014-03-06 Thread Jacek Pielaszkiewicz
Hi +++ Host sh-4.2# systemctl --version systemd 210 +PAM -LIBWRAP -AUDIT -SELINUX +IMA -SYSVINIT -LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR sh-4.2# sh-4.2# systemctl show Version=210 Features=+PAM -LIBWRAP -AUDIT -SELINUX +IMA -SYSVI

Re: [systemd-devel] Subscribe from commandline

2014-03-06 Thread Michael Biebl
2014-03-06 0:23 GMT+01:00 Usman : > Thanks Lennart. Is there a way I can do it from shell rather than writing C > or Java code? I just want to quickly verify that the messages I get once > Unit state changes. Any example? Shell probably not, but you should be able to quickly hack together somethin

Re: [systemd-devel] [systemd][cgroup in container] problem with cgroup hierarchy in container

2014-03-06 Thread Dariusz Michaluk
On 05.03.2014 19:16, Lennart Poettering wrote: Oh, yuck! THis is weird. Can you get a gdb backtrac and/or valgrind run for this? Can't reproduce this here... (gdb) run show Starting program: /usr/bin/systemctl show [Thread debugging using libthread_db enabled] Using host libthread_db library "/

[systemd-devel] [PATCH] man: systemd-bootchart - fix spacing in command

2014-03-06 Thread Zachary Cook
Use the same formatting as the systemd-analyze man page, so that man shows a space. --- man/systemd-bootchart.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man/systemd-bootchart.xml b/man/systemd-bootchart.xml index d0adaad..1715d5d 100644 --- a/man/systemd-bootchart

[systemd-devel] [PATCH] rules: mark loop device as SYSTEMD_READY=0 if no file is attached

2014-03-06 Thread Peter Rajnoha
Hi! Based on SYSTEMD_READY definition, I think we should also mark loop devices with no file attached as not ready: rules: mark loop device as SYSTEMD_READY=0 if no file is attached Check existence of loop/backing_file in sysfs and mark loop devices with SYSTEMD_READY if missing. Suc

[systemd-devel] [PATCH 0/2] [V3] systemd serialization on switch-root

2014-03-06 Thread harald
From: Harald Hoyer If "systemctl switch-root" is called with a specific "INIT" or /proc/cmdline contains "init=", then systemd would not serialize itsself. Let systemctl check, if the new init is in the standard systemd installation path and if so, clear the INIT parameter, to let systemd se

[systemd-devel] [PATCH 1/2] [V3] util: add files_same() helper function

2014-03-06 Thread harald
From: Harald Hoyer files_same() returns 1, if the files are the same 0, if the files have different inode/dev numbers errno, for any stat error --- src/shared/util.c | 22 +++--- src/shared/util.h | 2 ++ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a

[systemd-devel] [PATCH 2/2] [V3] systemctl: switch-root check, if we switch to a systemd init

2014-03-06 Thread harald
From: Harald Hoyer If "systemctl switch-root" is called with a specific "INIT" or /proc/cmdline contains "init=", then systemd would not serialize itsself. Let systemctl check, if the new init is in the standard systemd installation path and if so, clear the INIT parameter, to let systemd serial