aboutsummaryrefslogtreecommitdiff
blob: ef5e08c8f9e2984eb8c2f824b300e0d487f2fa09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$Id$
Short description of concept of shutdown-thread

This is implemented, at least from side of the scripts.
Missing are handlers for epg-update from outside and autotimer-kicking.

* Thread before shutdown - With possibility to plug in some addons
  This thread will be started when
    + it is sure it can do the shutdown (nothing is against it)
    + and it is an automatic shutdown (perhaps changed in future)
    + and this thread has not been finished in the last XXmin

  When decided not to run this thread
    shutdown continues
  else
    shutdown is aborted (with normal retry mechanism).
    
  This thread can do various things
    + do an epg-scan svdrp-SCAN or switch channel-ranges per CHAN)
    + fetch epg from external providers tvmovie hoerzu (when online)
    + fetch epg from infosat or nxtvepg
    + go over all recordings and start noad for those which have not had it already
    + trigger the xxv oder vdradmin autotimer
   
  This thread runs under a name for which is explicitly checked when shutdown so that
  it will not shutdown when it is not finished.
  It writes the time it finished into a file (under /var/vdr/shutdown-data)

  When doing shutdown and the last finish-time read from file is not longer ago than XXmin
  then it will not be started again and shutdown continues.