piektdiena, 2012. gada 23. novembris

On Error Restart Service- 011112


Попросили выложить мою улучшению версию On Error Restart Service которую я добавил в openAR-P_1.3_211_epl_alien_131112_test.
Она не дёргает картинку при каждой ошибке а только если ошибка продолжается.
Распакуйте в /usr/lib/enigma2/python/Plugins/SystemPlugins и ретсртните енигму.

Хочу напомнить:
Он не будет работать в имиджах в которых ядро не поддерживает системный лог. Наберите в телнет dmesg. Если там много сообщении то есть смысл устанавливать плагин, а если ошибка типа "dmesg: klogctl: Function not implemented" то смысла нету.
Но таких сейчас не много осталось.

Download: OnErrorRestartService-011112.zip

Original: http://gisclub.tv/index.php?topic=9202.msg145536#msg145536

9 komentāri:

  1. What about this plugin on last's ARP images from 08.04.2013 and 14.04.2013, does it working good?

    AtbildētDzēst
  2. In the first April version of the AR-P image in the kernel has been removed pirintk, so the plugins will not work.
    In recent versions printk is returned, and the plugin must work. If you plugins do not work properly, in the file /etc/init.d/initmodules change:
    echo "1"> / proc / sys / kernel / printk # for more log level change or remake line
    against to
    echo "4"> / proc / sys / kernel / printk # for more log level change or remake line
    or even to "7". Then plugin must work correctly.

    AtbildētDzēst
  3. Thanks Taapat for quick response.
    Ok, if i understand you, i must replace line in /etc/init.d/initmodules:
    echo "1" > /proc/sys/kernel/printk
    to:
    echo "4" > /proc/sys/kernel/printk

    Is that correct?

    AtbildētDzēst
  4. Yes that is correct.
    For me working level 4, but may be required a higher level, then put 5 or 6, or even delete the row. Then there will be the highest 7 level.
    But remember, if the higher level, then more messages will be a console, but the image will work slower.

    AtbildētDzēst
  5. Any chance and logic sense to make this plugin to start with button on remote control when enigma stuck with spinner?
    In this case we don't need plugin to communicate with dmesg, we just need restart service on button.
    Thanks!

    AtbildētDzēst
  6. I think that when enigma freezes with spinner no more that can be done with remote control.
    Plugin restart service before it happens, because later is too late, enigma freezes and not allow to do anything.

    AtbildētDzēst
  7. Hell Taapat, yes, maybe it is logic.
    But how then images like Hybrid and PKT have the ability to reboot box when stuck with 5x Power button on remote control?
    Is there a chance to make something similar on AR-P?

    AtbildētDzēst
  8. I do not know how it is implemented on Hybrid and PKT, but it is theoretically possible if it does the separate application instead of plugin in enigma.
    I do not have much experience in C++, therefore I can not promise that I can realize.
    But do you really the receiver hangs very often? Maybe better is spend time to prevent errors, instead of to add such applications?

    AtbildētDzēst
  9. You're right. OnErrorRestartService is quite enough.
    Thanks.

    AtbildētDzēst