diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-02-14 21:37:04 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-02-14 21:37:47 +0100 |
commit | 18ac7c4644add4db18bcb7cd7cb3560cffe846b3 (patch) | |
tree | 4cb0d3d26d338d5b857023024c401cbfb6c5a09b /src/DabMux.cpp | |
parent | cba2e4929392272ce09219d1a691c059a580ab41 (diff) | |
download | dabmux-18ac7c4644add4db18bcb7cd7cb3560cffe846b3.tar.gz dabmux-18ac7c4644add4db18bcb7cd7cb3560cffe846b3.tar.bz2 dabmux-18ac7c4644add4db18bcb7cd7cb3560cffe846b3.zip |
restart RC if it did a fault
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r-- | src/DabMux.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp index ca82889..ca5bd08 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -340,7 +340,7 @@ int main(int argc, char *argv[]) string conf_file = argv[2]; parse_configfile(conf_file, outputs, ensemble, &enableTist, &FICL, - &factumAnalyzer, &limit, rc, &statsserverport); + &factumAnalyzer, &limit, &rc, &statsserverport); } catch (runtime_error &e) { @@ -1812,6 +1812,12 @@ int main(int argc, char *argv[]) } } #endif + + /* Check every six seconds if the remote control is still working */ + if (rc && fc->FCT == 249 && rc->fault_detected()) { + etiLog.level(warn) << "Detected Remote Control fault, restarting it"; + rc->restart(); + } } EXIT: |