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

Christoph Martin pkg-vdr-dvb-devel@lists.alioth.debian.org
Wed, 05 Jan 2005 00:14:21 +0100


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig52514C5EEE8DF14B47B0E2BB
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I tried to find out why my vdr box would sometimes not wake up correctly 
for a recording.

The problem occurs when vdr-shutdown is called while eg. noad is still 
running. /usr/share/vdr/shutdown-hooks/S50.noad sets TRY_AGAIN to 5. 
This makes vdr-shutdown abort the shutdown. But before that 
/usr/share/vdr/shutdown-hooks/S90.nvram-wakeup is still called. Here the 
time for the next recording is set in NVRAM and SPECIAL_SHUTDOWN is set 
to /usr/sbin/specialshutdown to do a reboot to make the NVRAM setting 
active. But this shutdown is never executed because TRY_AGAIN was set 
before that.

After the 5 minute delay vdr-shutdown is called again. But this time if 
noad is not running anymore S90.nvram-wakeup would find the reboot time 
already set and would not set SPECIAL_SHUTDOWN. So the correct shutdown 
is not called and the wakeup will fail.

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?

Christoph
-- 
============================================================================
Christoph Martin, EDV der Verwaltung, Uni-Mainz, Germany
  Internet-Mail:  Christoph.Martin@Uni-Mainz.DE
   Telefon: +49-6131-3926337

--------------enig52514C5EEE8DF14B47B0E2BB
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB2yNSgeVih7XOVJcRAh5iAJ9SXnL3grCxVCsz6Tdjl1Ab6mE49wCfUyhj
t8E8754eqN+5etla11d+w8w=
=OgOm
-----END PGP SIGNATURE-----

--------------enig52514C5EEE8DF14B47B0E2BB--