aboutsummaryrefslogtreecommitdiff
blob: d22ad9c2b384e4f9de3bdc36003e55114506e6e6 (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
Short description of concept of shutdown-thread


* 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.