Попросили выложить мою улучшению версию 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
What about this plugin on last's ARP images from 08.04.2013 and 14.04.2013, does it working good?
AtbildētDzēstIn the first April version of the AR-P image in the kernel has been removed pirintk, so the plugins will not work.
AtbildētDzēstIn 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.
Thanks Taapat for quick response.
AtbildētDzēstOk, 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?
Yes that is correct.
AtbildētDzēstFor 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.
Any chance and logic sense to make this plugin to start with button on remote control when enigma stuck with spinner?
AtbildētDzēstIn this case we don't need plugin to communicate with dmesg, we just need restart service on button.
Thanks!
I think that when enigma freezes with spinner no more that can be done with remote control.
AtbildētDzēstPlugin restart service before it happens, because later is too late, enigma freezes and not allow to do anything.
Hell Taapat, yes, maybe it is logic.
AtbildētDzēstBut 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?
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.
AtbildētDzēstI 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?
You're right. OnErrorRestartService is quite enough.
AtbildētDzēstThanks.