Re: [systemd-devel] [PATCH] correctly mark system reboot

2011-03-02 Thread Andrey Borzenkov
On Thu, Mar 3, 2011 at 7:51 AM, Andrey Borzenkov wrote: > On Thu, Mar 3, 2011 at 12:31 AM, Lennart Poettering > wrote: >> On Wed, 02.03.11 11:41, Andrey Borzenkov (arvidj...@gmail.com) wrote: >> >>> It is expected that system will put "reboot" in wtmp to mark >>> when it starts coming up. This is

[systemd-devel] How rpcbind.target is supposed to be pulled in?

2011-03-02 Thread Andrey Borzenkov
User complained that with systemd nfs is never started. What actually happens - it is started, but too early, before rpcbind. What happens is: {pts/1}% grep Provides /etc/init.d/rpcbind # Provides: $portmap {pts/1}% grep Require /etc/init.d/nfs-common # Required-Start:$portmap # Required-Stop:

Re: [systemd-devel] [PATCH] correctly mark system reboot

2011-03-02 Thread Andrey Borzenkov
On Thu, Mar 3, 2011 at 12:31 AM, Lennart Poettering wrote: > On Wed, 02.03.11 11:41, Andrey Borzenkov (arvidj...@gmail.com) wrote: > >> It is expected that system will put "reboot" in wtmp to mark >> when it starts coming up. This is looked for by "who -b" and is >> used by "last" to calculate cor

Re: [systemd-devel] [PATCH] client: do not wait forever if daemon is not started

2011-03-02 Thread Ray Strode
Hi, On Tue, Mar 1, 2011 at 2:16 AM, Andrey Borzenkov wrote: > Currently plymouth --wait will wait forever if daemon is not > started. This does not look right - we were asked to wait for > daemon to stop and daemon is obviously stopped. So make it > exit right away in this case. > > This avoids t

Re: [systemd-devel] [PATCH] correctly mark system reboot

2011-03-02 Thread Lennart Poettering
On Wed, 02.03.11 11:41, Andrey Borzenkov (arvidj...@gmail.com) wrote: > It is expected that system will put "reboot" in wtmp to mark > when it starts coming up. This is looked for by "who -b" and is > used by "last" to calculate correct time spent by various programs. > Add systemd-update-utmp-reb

Re: [systemd-devel] %post %preun rpm macros

2011-03-02 Thread Alexey Shabalin
>> Is it possible to add aliase for "condrestart" to "try-restart"? and >> "condreload" to "reload-or-try-restart"? > > Done. > >> What use for "condstop"? May be "stop"? > > Yes, our "stop" is a noop anyway if a service isn't running. Thank you. May be add aliase condstop to stop too? -- Alexey

[systemd-devel] [PATCH V2] correctly mark system reboot

2011-03-02 Thread Andrey Borzenkov
It is expected that system will put "reboot" in wtmp to mark when it starts coming up. This is looked for by "who -b" and is used by "last" to calculate correct time spent by various programs. Add systemd-update-utmp-reboot.service which is started as soon as possible after local-fs.target to mark

[systemd-devel] [PATCH] correctly mark system reboot

2011-03-02 Thread Andrey Borzenkov
It is expected that system will put "reboot" in wtmp to mark when it starts coming up. This is looked for by "who -b" and is used by "last" to calculate correct time spent by various programs. Add systemd-update-utmp-reboot.service which is started as soon as possible after local-fs.target to mark