Re: [systemd-devel] Improve boot-time of systemd

2011-03-29 Thread [email protected]
2011/3/29 Lennart Poettering : > On Tue, 29.03.11 03:36, [email protected] ([email protected]) wrote: >> To make boot fast, it seems udev's coldplug do too much jobs -- what I >> expect is only coldplug local block devices and tty in that stage. >> This can save ~2s in my boot test. >> >> Is it pos

Re: [systemd-devel] problem with service that uses bash loop

2011-03-29 Thread Michał Piotrowski
W dniu 29 marca 2011 21:52 użytkownik Lennart Poettering napisał: > On Tue, 29.03.11 21:46, Michał Piotrowski ([email protected]) wrote: > >> > Ah of course! Otherwise the modprobe is executed right when the last >> > process you ran before exited... >> >> I do not understand why this is so. >> >>

Re: [systemd-devel] problem with service that uses bash loop

2011-03-29 Thread Lennart Poettering
On Tue, 29.03.11 21:46, Michał Piotrowski ([email protected]) wrote: > > Ah of course! Otherwise the modprobe is executed right when the last > > process you ran before exited... > > I do not understand why this is so. > > example I > Type=oneshot > ExecStart=A > ExecStart=B > ExecStop=C > > ex

Re: [systemd-devel] problem with service that uses bash loop

2011-03-29 Thread Michał Piotrowski
W dniu 29 marca 2011 21:30 użytkownik Lennart Poettering napisał: > On Tue, 29.03.11 21:27, Michał Piotrowski ([email protected]) wrote: > >> >> I added >> RemainAfterExit=yes >> and now service behaves as expected. > > Ah of course! Otherwise the modprobe is executed right when the last > process

Re: [systemd-devel] problem with service that uses bash loop

2011-03-29 Thread Lennart Poettering
On Tue, 29.03.11 21:27, Michał Piotrowski ([email protected]) wrote: > > I added > RemainAfterExit=yes > and now service behaves as expected. Ah of course! Otherwise the modprobe is executed right when the last process you ran before exited... Lennart -- Lennart Poettering - Red Hat, Inc. ___

Re: [systemd-devel] problem with service that uses bash loop

2011-03-29 Thread Michał Piotrowski
W dniu 29 marca 2011 21:15 użytkownik Michał Piotrowski napisał: > W dniu 29 marca 2011 21:07 użytkownik Lennart Poettering > napisał: >> On Tue, 29.03.11 21:06, Michał Piotrowski ([email protected]) wrote: >> >>> >> [Install] >>> >> WantedBy=multi-user.target >>> >> >>> >> It works well until I

Re: [systemd-devel] problem with service that uses bash loop

2011-03-29 Thread Michał Piotrowski
W dniu 29 marca 2011 21:07 użytkownik Lennart Poettering napisał: > On Tue, 29.03.11 21:06, Michał Piotrowski ([email protected]) wrote: > >> >> [Install] >> >> WantedBy=multi-user.target >> >> >> >> It works well until I add >> >> ExecStop=/bin/bash -c "for module in $HWMON_MODULES $BUS_MODULES;

Re: [systemd-devel] systemd's locale.conf vs. me

2011-03-29 Thread Lennart Poettering
On Tue, 29.03.11 20:59, Florian Kriener ([email protected]) wrote: On the mailing list please keep things in English. > On Tuesday 29 March 2011 19:41:09 Lennart Poettering wrote: > > Erstell einfach /run bevor du bootest. "mkdir /run". Siehe die > > jüngsten diskussionen auf der ML für detail

Re: [systemd-devel] systemd's locale.conf vs. me

2011-03-29 Thread Florian Kriener
On Tuesday 29 March 2011 19:41:09 Lennart Poettering wrote: > Erstell einfach /run bevor du bootest. "mkdir /run". Siehe die > jüngsten diskussionen auf der ML für details dazu. Das hat zwar funktioniert sorge aber für einen anderen Fehler: / wurde nur ro gemounted. Ich untersuche das ein anderes

Re: [systemd-devel] problem with service that uses bash loop

2011-03-29 Thread Lennart Poettering
On Tue, 29.03.11 21:06, Michał Piotrowski ([email protected]) wrote: > >> [Install] > >> WantedBy=multi-user.target > >> > >> It works well until I add > >> ExecStop=/bin/bash -c "for module in $HWMON_MODULES $BUS_MODULES; do > >> /sbin/modprobe -r $module >/dev/null 2>&1; done" > >> > >> Is there

Re: [systemd-devel] problem with service that uses bash loop

2011-03-29 Thread Michał Piotrowski
W dniu 29 marca 2011 20:48 użytkownik Lennart Poettering napisał: > On Tue, 29.03.11 20:30, Michał Piotrowski ([email protected]) wrote: > >> Hi, >> >> I've got a service >> >> [Unit] >> Description=lm_sensors for monitoring motherboard sensor values >> After=syslog.target >> >> [Service] >> Envir

Re: [systemd-devel] problem with service that uses bash loop

2011-03-29 Thread Lennart Poettering
On Tue, 29.03.11 20:30, Michał Piotrowski ([email protected]) wrote: > Hi, > > I've got a service > > [Unit] > Description=lm_sensors for monitoring motherboard sensor values > After=syslog.target > > [Service] > EnvironmentFile=/etc/sysconfig/lm_sensors > Type=oneshot > ExecStart=/bin/bash -c

Re: [systemd-devel] crypto: to show stars or not to show them

2011-03-29 Thread Jan Engelhardt
On Tuesday 2011-03-29 19:18, Lennart Poettering wrote: >On Tue, 29.03.11 19:17, Jan Engelhardt ([email protected]) wrote: > >> >> >I have now fixed git to accept both TAB and BS as silent mode switch >> >> >key. TAB at any time, and BS only if pressed as very first key on the >> >> >prompt. >> >

[systemd-devel] problem with service that uses bash loop

2011-03-29 Thread Michał Piotrowski
Hi, I've got a service [Unit] Description=lm_sensors for monitoring motherboard sensor values After=syslog.target [Service] EnvironmentFile=/etc/sysconfig/lm_sensors Type=oneshot ExecStart=/bin/bash -c "for module in $BUS_MODULES $HWMON_MODULES; do /sbin/modprobe $module >/dev/null 2>&1; done" E

Re: [systemd-devel] crypto: to show stars or not to show them

2011-03-29 Thread Lennart Poettering
On Tue, 29.03.11 19:17, Jan Engelhardt ([email protected]) wrote: > >> >I have now fixed git to accept both TAB and BS as silent mode switch > >> >key. TAB at any time, and BS only if pressed as very first key on the > >> >prompt. > >> >Everybody happy? > >> > >> No. We don't need two keys to p

Re: [systemd-devel] crypto: to show stars or not to show them

2011-03-29 Thread Jan Engelhardt
On Tuesday 2011-03-29 19:06, Lennart Poettering wrote: >On Tue, 29.03.11 18:56, Jan Engelhardt ([email protected]) wrote: > >> >> On Tuesday 2011-03-29 18:41, Lennart Poettering wrote: >> > >> >Ah, ok. I see. If BS is handled like this only as very first keypress >> >(and not later on anymore) t

Re: [systemd-devel] crypto: to show stars or not to show them

2011-03-29 Thread Lennart Poettering
On Tue, 29.03.11 18:56, Jan Engelhardt ([email protected]) wrote: > > On Tuesday 2011-03-29 18:41, Lennart Poettering wrote: > > > >Ah, ok. I see. If BS is handled like this only as very first keypress > >(and not later on anymore) this indeed makes more sense. > > > >I have now fixed git to acc

Re: [systemd-devel] crypto: to show stars or not to show them

2011-03-29 Thread Jan Engelhardt
On Tuesday 2011-03-29 18:41, Lennart Poettering wrote: > >Ah, ok. I see. If BS is handled like this only as very first keypress >(and not later on anymore) this indeed makes more sense. > >I have now fixed git to accept both TAB and BS as silent mode switch >key. TAB at any time, and BS only if pre

Re: [systemd-devel] crypto: to show stars or not to show them

2011-03-29 Thread Lennart Poettering
On Tue, 29.03.11 00:10, Jan Engelhardt ([email protected]) wrote: > >> Incorporating Graham's suggestion to use BKSP instead: > > > >Hmm? > > > >Backspace? Why backspace? > > Quoting Graham: > > "On a slightly different note; Would it be possible to watch for > unprintable keys? For example, w

Re: [systemd-devel] Improve boot-time of systemd

2011-03-29 Thread Lennart Poettering
On Tue, 29.03.11 03:20, [email protected] ([email protected]) wrote: > 2011/3/28 Lennart Poettering : > > On Sun, 20.03.11 05:28, [email protected] ([email protected]) wrote: > >> Current readahead implementation has some problems: > >> 1. It can't separate *real* block read requests from all read

Re: [systemd-devel] Improve boot-time of systemd

2011-03-29 Thread Lennart Poettering
On Tue, 29.03.11 03:36, [email protected] ([email protected]) wrote: > > Hi Kay, > > 2011/3/28 Kay Sievers : > > On Fri, Mar 18, 2011 at 14:57, Kay Sievers wrote: > > > > Udev no longer enables udev-settle.service by default now. > > basic.target is no longer blocked by it, and udev's coldplug

Re: [systemd-devel] [PATCH] systemctl: allow enable/disable/is-enabled on symlink aliases

2011-03-29 Thread Lennart Poettering
On Sun, 20.03.11 16:50, Andrey Borzenkov ([email protected]) wrote: > Currently handling of unit aliases (symlinks) is inconsistent > between systemd and systemctl. While systemd allows acces unit > under any alias, systemctl will refuse to process them unless > redirecting request to systemd.

Re: [systemd-devel] What may trigger device unit start job?

2011-03-29 Thread Lennart Poettering
On Sun, 20.03.11 15:03, Andrey Borzenkov ([email protected]) wrote: > > systemd[1]: Installed new job poweroff.target/start as 468 > [...] > systemd[1]: Installed new job dev-mapper-secrets.device/start as 492 > systemd[1]: Installed new job [email protected]/start as 493 > > Oops. Wh

Re: [systemd-devel] crypto: to show stars or not to show them

2011-03-29 Thread Graham Cantin
On Mon, Mar 28, 2011 at 3:10 PM, Jan Engelhardt wrote: > > On Monday 2011-03-28 23:29, Lennart Poettering wrote: > > >On Sun, 27.03.11 23:52, Jan Engelhardt ([email protected]) wrote: > > > >> > >> On Friday 2011-03-18 01:41, Lennart Poettering wrote: > >> > >> >On Fri, 18.03.11 00:18, Jan Engelh