conflicts between shutdown hooks of nvram-wakeup and e.g. noad

Tobias Grimm pkg-vdr-dvb-devel@lists.alioth.debian.org
Wed, 05 Jan 2005 01:13:07 +0100


Hi!

Christoph Martin wrote:

> So either S90.nvram-wakeup should not be called when TRY_AGAIN is set 
> or it should try to remember the correct shutdown method.
>
> What do you think?


You are perfectly right - this is a well known problem. It's already 
solved in vdr 1.2.6-6 (not yet released). In this revision, processing 
the shutdown hooks will be aborted, if a hook script requests to delay 
the shutdown. This way the nvram-wakeup-hook will be called only, if the 
system will really shut down (because it should always be the last hook).

see:

http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/~checkout~/vdr/vdr/debian/vdr-shutdown?rev=1.7&content-type=text/plain&cvsroot=pkg-vdr-dvb

Another solution would be to enable FORCE_REBOOT in 
/etc/vdr/vdr-nvram-wakeup.conf available in nvram-wakeup >0.97-4. It's 
already uploaded but only available in Unstable. You can find a Backport 
for Sarge in my repository:

http://www.e-tobi.net/vdr/sarge/experimental/binary/backports/

bye,

Tobias