Re: [systemd-devel] system shutdown: what unit is taking so long?

2013-04-16 Thread Andrey Borzenkov
On Wed, Apr 17, 2013 at 9:17 AM, Jan Engelhardt wrote: > > I think systemd should print some status message -- like "Shutdown of > xendomains.service still running" every 5sec, maybe? -- when shutting > down some service takes longer than expected. If a login shell on > console was not killed unti

[systemd-devel] system shutdown: what unit is taking so long?

2013-04-16 Thread Jan Engelhardt
Hi, I have some hosts with Xen VMs running, and on shutdown, the classic LSB script /etc/init.d/xendomains is used to start and stop the "service" on openSUSE. There is intricate logic in there to stop/migrate/suspend these VMs according to user preferences. In any case, the shutdown process

[systemd-devel] Lid close event delivered delayed

2013-04-16 Thread Jan Engelhardt
Hi, something I observed with systemd-195 is that the LidClose event is delivered when switching from X to console while the lid is closed. This is unexpected, and what I expected is instead that nothing occurs. Approximate steps to reproduce, IIRC: 1. Plug in external monitor 2. Boot machine.

Re: [systemd-devel] [PATCH 1/2] Report about syntax error in extended format

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Apr 05, 2013 at 08:51:39PM +0200, Lennart Poettering wrote: > On Tue, 02.04.13 07:33, Zbigniew Jędrzejewski-Szmek ([email protected]) wrote: > > > > +return log_struct(error ? LOG_ERR : LOG_WARNING, > > > + "MESSAGE=[%s:%d]: %s", file, line, buf, > > > +

Re: [systemd-devel] [PATCH] configure: use AC_CHECK_TOOL for objcopy, strings and gperf

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Apr 16, 2013 at 02:26:30PM +0200, Martin Jansa wrote: > * using AC_PATH_TOOL does not allow to override it from shell environment > which is useful when cross-compiling > * with external toolchain I have different HOST_PREFIX and HOST_SYS > AC_PATH_TOOL is using HOST_SYS as prefix and f

Re: [systemd-devel] [PATCH] fileio: also escape $ and ` when writing out env vars

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Apr 14, 2013 at 02:54:09PM +0300, Mantas Mikulėnas wrote: > These are also considered special by sh and bash. > --- > src/shared/fileio.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/shared/fileio.c b/src/shared/fileio.c > index 400a416..617afea 100644

Re: [systemd-devel] [PATCH] python-systemd: Reader return special fields and _Reader changes

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Apr 14, 2013 at 08:55:08PM +0100, Steven Hiscocks wrote: > From: Steven Hiscocks > > Changes to _Reader make it match closer to C API, by removing `get_next` > and `get_previous`. A `get_all` method added, which returns dictionary > of fields using C API SD_JOURNAL_FOREACH_DATA macro, whi

Re: [systemd-devel] recursive dispatching of va_list (was: Re: [ANNOUNCE] systemd 200)

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Apr 09, 2013 at 09:37:33PM +0200, Lennart Poettering wrote: > On Mon, 08.04.13 14:30, Lennart Poettering ([email protected]) wrote: > > > On Fri, 05.04.13 23:33, Zbigniew Jędrzejewski-Szmek ([email protected]) > > wrote: > > > > > > I had a go at debugging this... I think that the i

Re: [systemd-devel] [PATCH] bash-completion: --property support

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Apr 16, 2013 at 01:57:47PM -0400, Dave Reisner wrote: > On Tue, Apr 16, 2013 at 01:48:14PM -0400, Zbigniew Jędrzejewski-Szmek wrote: > > --- > > It turns out that simply fetching the list is fast enough. > > At least on my relatively beefy machine. And this approach > > is quite easy. So I

Re: [systemd-devel] [PATCH v3] tools: add static-nodes tool

2013-04-16 Thread Tom Gundersen
On Tue, Apr 16, 2013 at 3:49 PM, Thomas Bächler wrote: > Am 16.04.2013 15:12, schrieb Tom Gundersen: >> +static void write_human(FILE *out, char module[], char devname[], char >> type, unsigned int maj, unsigned int min) > > [...] > >> +static void write_tmpfile(FILE *out, char devname[], char ty

Re: [systemd-devel] [PATCH v3] tools: add static-nodes tool

2013-04-16 Thread Kay Sievers
On Tue, Apr 16, 2013 at 8:51 PM, Lucas De Marchi wrote: > Kay, what's your opinion regarding this command? Is this sufficient to > drop CAP_MKNOD from udev? Sounds all good to me. Kay ___ systemd-devel mailing list [email protected]

Re: [systemd-devel] How to run *ctl command using systemd-nspawn

2013-04-16 Thread Koen Kooi
Op 16 apr. 2013, om 20:14 heeft Zbigniew Jędrzejewski-Szmek het volgende geschreven: > On Tue, Apr 16, 2013 at 09:11:51AM +0200, Koen Kooi wrote: >> Hi, >> >> To help with flashing the onboard eMMC of a 10 boards I'm using >> systemd-nspawn to run package postinstall scripts that generate

Re: [systemd-devel] How to run *ctl command using systemd-nspawn

2013-04-16 Thread Koen Kooi
Op 16 apr. 2013, om 20:00 heeft "Kok, Auke-jan H" het volgende geschreven: > On Tue, Apr 16, 2013 at 12:11 AM, Koen Kooi > wrote: >> Hi, >> >> To help with flashing the onboard eMMC of a 10 boards I'm using >> systemd-nspawn to run package postinstall scripts that generate UUIDs and >>

Re: [systemd-devel] [PATCH v3] tools: add static-nodes tool

2013-04-16 Thread Lucas De Marchi
On Tue, Apr 16, 2013 at 10:49 AM, Thomas Bächler wrote: > Am 16.04.2013 15:12, schrieb Tom Gundersen: >> +static void write_human(FILE *out, char module[], char devname[], char >> type, unsigned int maj, unsigned int min) > > [...] > >> +static void write_tmpfile(FILE *out, char devname[], char t

Re: [systemd-devel] Per-instance override with foobar.service.d

2013-04-16 Thread John Lane
On 12/04/13 14:00, Zbigniew Jędrzejewski-Szmek wrote: [email protected] and [email protected]/myinstance.conf [email protected] and [email protected]/myinstance.conf This would be possible, if somebody implements it. which don't work so I guess this isn't implemented. If so, would someth

Re: [systemd-devel] How to run *ctl command using systemd-nspawn

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Apr 16, 2013 at 09:11:51AM +0200, Koen Kooi wrote: > Hi, > > To help with flashing the onboard eMMC of a 10 boards I'm using > systemd-nspawn to run package postinstall scripts that generate UUIDs and > some other things and it's working great for that! Every board now has a > uniqu

Re: [systemd-devel] How to run *ctl command using systemd-nspawn

2013-04-16 Thread Kok, Auke-jan H
On Tue, Apr 16, 2013 at 12:11 AM, Koen Kooi wrote: > Hi, > > To help with flashing the onboard eMMC of a 10 boards I'm using > systemd-nspawn to run package postinstall scripts that generate UUIDs and > some other things and it's working great for that! Every board now has a > unique value

Re: [systemd-devel] [PATCH] bash-completion: --property support

2013-04-16 Thread Dave Reisner
On Tue, Apr 16, 2013 at 01:48:14PM -0400, Zbigniew Jędrzejewski-Szmek wrote: > --- > It turns out that simply fetching the list is fast enough. > At least on my relatively beefy machine. And this approach > is quite easy. So I think we can do that. > > Zbyszek > > shell-completion/bash/systemctl |

[systemd-devel] [PATCH] bash-completion: --property support

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
--- It turns out that simply fetching the list is fast enough. At least on my relatively beefy machine. And this approach is quite easy. So I think we can do that. Zbyszek shell-completion/bash/systemctl | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git

Re: [systemd-devel] systemd release agent

2013-04-16 Thread Kevin Wilson
Hello, Thanks a lot for your answer. Something is not clear to me with this test I made (on Fedora 18). I hope that someone can explain. I ran: cat /sys/fs/cgroup/systemd/release_agent /usr/lib/systemd/systemd-cgroups-agent No I moved /usr/lib/systemd/systemd-cgroups-agent to some backup. and made

Re: [systemd-devel] Fwd: [systemd-commits] Makefile.am src/bootchart - Make bootcharts go to the journal

2013-04-16 Thread Kok, Auke-jan H
On Tue, Apr 16, 2013 at 1:47 AM, Colin Guthrie wrote: > 'Twas brillig, and Kok, Auke-jan H at 16/04/13 00:33 did gyre and gimble: >> FYI - this is a first pass to putting the bootcharts into the journal, >> exactly as coredump does. Ultimately, I will probably make bootcharts >> not go to disk oth

Re: [systemd-devel] [PATCH] shell-completion/bash/systemctl: add completion for properties

2013-04-16 Thread Kay Sievers
On Tue, Apr 16, 2013 at 6:00 PM, Zbigniew Jędrzejewski-Szmek wrote: >> Perhaps we can come up with a way of creating this list dynamically so >> that we're not forever indebted to keeping this list up to date. > My thoughts exactly. Would be best if we created it at compilation time. > Hm, we hav

Re: [systemd-devel] [PATCH] shell-completion/bash/systemctl: add completion for properties

2013-04-16 Thread Andrey Borzenkov
В Tue, 16 Apr 2013 19:06:28 +0200 Kay Sievers пишет: > On Tue, Apr 16, 2013 at 6:00 PM, Zbigniew Jędrzejewski-Szmek > wrote: > > >> Perhaps we can come up with a way of creating this list dynamically so > >> that we're not forever indebted to keeping this list up to date. > > My thoughts exactl

Re: [systemd-devel] [PATCH] shell-completion/bash/systemctl: add completion for properties

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Apr 16, 2013 at 11:28:27AM -0400, Dave Reisner wrote: > On Tue, Apr 16, 2013 at 04:16:56PM +0200, [email protected] wrote: > > From: Harald Hoyer > > > > --- > > TODO| 2 -- > > shell-completion/bash/systemctl | 13 - > > 2 files changed, 12 insert

Re: [systemd-devel] systemd-nspawn

2013-04-16 Thread Chir0n
I forgot to say the system is halting normally with the audit=0 thing. On Tue, Apr 16, 2013 at 9:22 AM, Zbigniew Jędrzejewski-Szmek < [email protected]> wrote: > On Tue, Apr 16, 2013 at 09:54:29AM +0100, Colin Guthrie wrote: > > 'Twas brillig, and Zbigniew Jędrzejewski-Szmek at 15/04/13 19:48 di

Re: [systemd-devel] [PATCH] shell-completion/bash/systemctl: add completion for properties

2013-04-16 Thread Dave Reisner
On Tue, Apr 16, 2013 at 04:16:56PM +0200, [email protected] wrote: > From: Harald Hoyer > > --- > TODO| 2 -- > shell-completion/bash/systemctl | 13 - > 2 files changed, 12 insertions(+), 3 deletions(-) > > diff --git a/TODO b/TODO > index f90c66b..22c26a

[systemd-devel] [PATCH] shell-completion/bash/systemctl: add completion for properties

2013-04-16 Thread harald
From: Harald Hoyer --- TODO| 2 -- shell-completion/bash/systemctl | 13 - 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index f90c66b..22c26a3 100644 --- a/TODO +++ b/TODO @@ -1,8 +1,6 @@ Bugfixes: * timedatectl: NTP enabl

Re: [systemd-devel] [PATCH v3] tools: add static-nodes tool

2013-04-16 Thread Thomas Bächler
Am 16.04.2013 15:12, schrieb Tom Gundersen: > +static void write_human(FILE *out, char module[], char devname[], char type, > unsigned int maj, unsigned int min) [...] > +static void write_tmpfile(FILE *out, char devname[], char type, unsigned int > maj, unsigned int min) [...] > +static int

Re: [systemd-devel] [PATCH v2] tools: add static-nodes tool

2013-04-16 Thread Tom Gundersen
On Tue, Apr 16, 2013 at 1:20 AM, Lucas De Marchi wrote: > Hi Tom, Hi Lucas, Thanks for your review! > On Fri, Apr 12, 2013 at 9:15 PM, Tom Gundersen wrote: >> This tool reads modules.devname from the current kernel directory and outputs >> the information. >> >> For now only the tmpfiles.d(5)

[systemd-devel] [PATCH v3] tools: add static-nodes tool

2013-04-16 Thread Tom Gundersen
This tool reads modules.devname from the current kernel directory and outputs the information. By default in a human-readable format, and optionally in machine-readable formats. For now only the tmpfiles.d(5) format is supported, but more could easily be added in the future if there is a need. Th

Re: [systemd-devel] [PATCH 2/2] journal: get rid of LINE_MAX in sd_journal_printv*()

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Apr 16, 2013 at 10:01:02AM +0100, Colin Guthrie wrote: > 'Twas brillig, and Zbigniew Jędrzejewski-Szmek at 15/04/13 22:30 did > gyre and gimble: > > Hm, I've now read the wikipedia page ;), and I see > > that it's not possible. So I guess that's not a valid concern. > > Wikipedia > /Wi-key

[systemd-devel] [PATCH] configure: use AC_CHECK_TOOL for objcopy, strings and gperf

2013-04-16 Thread Martin Jansa
* using AC_PATH_TOOL does not allow to override it from shell environment which is useful when cross-compiling * with external toolchain I have different HOST_PREFIX and HOST_SYS AC_PATH_TOOL is using HOST_SYS as prefix and fails to find objcopy which is available only as ${TARGET_PREFIX}objc

Re: [systemd-devel] systemd-nspawn

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Apr 16, 2013 at 09:54:29AM +0100, Colin Guthrie wrote: > 'Twas brillig, and Zbigniew Jędrzejewski-Szmek at 15/04/13 19:48 did > gyre and gimble: > > On Mon, Apr 15, 2013 at 08:36:33PM +0200, Zbigniew Jędrzejewski-Szmek wrote: > >> On Mon, Apr 15, 2013 at 02:31:56PM -0300, Chir0n wrote: > >>

Re: [systemd-devel] [PATCH 2/2] journal: get rid of LINE_MAX in sd_journal_printv*()

2013-04-16 Thread Colin Guthrie
'Twas brillig, and Zbigniew Jędrzejewski-Szmek at 15/04/13 22:30 did gyre and gimble: > Hm, I've now read the wikipedia page ;), and I see > that it's not possible. So I guess that's not a valid concern. Wikipedia /Wi-key-pee-dia/ Noun 1. Repository of erroneous history information 2. Cyber-bully

Re: [systemd-devel] Boot Service on Select Motherboard Only

2013-04-16 Thread Colin Guthrie
'Twas brillig, and [email protected] at 15/04/13 23:03 did gyre and gimble: > Question: how to boot ntpd.service on one PC and not others from the > same USB stick. > > Network Time Service computes clock tweaks for a motherboard. The idea > is to run it on just one motherboard brand/model,

Re: [systemd-devel] systemd-nspawn

2013-04-16 Thread Colin Guthrie
'Twas brillig, and Zbigniew Jędrzejewski-Szmek at 15/04/13 19:48 did gyre and gimble: > On Mon, Apr 15, 2013 at 08:36:33PM +0200, Zbigniew Jędrzejewski-Szmek wrote: >> On Mon, Apr 15, 2013 at 02:31:56PM -0300, Chir0n wrote: >>> # yum -y --releasever=19 --nogpg --installroot=/srv/mycontainer >>> --d

Re: [systemd-devel] Fwd: [systemd-commits] Makefile.am src/bootchart - Make bootcharts go to the journal

2013-04-16 Thread Colin Guthrie
'Twas brillig, and Kok, Auke-jan H at 16/04/13 00:33 did gyre and gimble: > FYI - this is a first pass to putting the bootcharts into the journal, > exactly as coredump does. Ultimately, I will probably make bootcharts > not go to disk other than the journal by default. > > A single one-liner can

[systemd-devel] How to run *ctl command using systemd-nspawn

2013-04-16 Thread Koen Kooi
Hi, To help with flashing the onboard eMMC of a 10 boards I'm using systemd-nspawn to run package postinstall scripts that generate UUIDs and some other things and it's working great for that! Every board now has a unique value in /etc/machine-id instead it being empty and systemd randomizi