Success....finally...only with Notepad ++.
Thanks for helping ![]()
Success....finally...only with Notepad ++.
Thanks for helping ![]()
I see...but I edited with ultraedit +gedit5dca0dfe.png
No,I used gedit and correct"save as"... linux ending
What's my mistake ?
I have a file :
Bash
#!/bin/sh
#
systemctl stop oscam_11704
systemctl start oscam_11704
exit 0
is shown in extensions menu but I get:618ce1cd19d4e61c.png
does not work with init.d start softcam command
Thanks.I will try..
BTW:The former thread you mentioned is solved
I need a script or plugin to execute"systemctl stop oscam_11704" command with the Dreambox remote(OS2.5)
I found a script but it's from an old thread and I don't know whether compatible
Don't need a cronjob as I need it once a week or so.
(reason:half of clients suddenly off......restored by this command)
/usr/lib/enigma2/python/Plugins/Extensions/ExecuteMyScript/plugin.py
Python
from Plugins.Plugin import PluginDescriptor
from Screens.Console import Console
cmd = "/usr/script/ExecuteMyScript.sh"
def main(session, **kwargs): session.open(Console,_("ExcuteMyScript.sh"),[cmd])
def Plugins(**kwargs): return [PluginDescriptor(name="Execute My Script", description=_("execute /usr/script/ExcuteMyScript.sh"), where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main), PluginDescriptor(name="Execute My Script", description=_("execute /usr/script/ExcuteMyScript.sh"), where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=main)]
+ an empty folder: __init__.py is needed
Display More
ok...thanks
Sorry for bothering again :face screaming in fear:
your above file"
Especially for you... one example... for CRON (user config):
* * * * * if ! pidof oscam_11704 > /dev/null; then systemctl restart oscam_11704; fi" restarts when oscam is stopped.
But I messed with the cronjob ???
into/etc/cron/crontabs I put a file"root" with your line.....nothing happens....what I am doing wrong...
thanks for helping
Oscam binary is the exact version for my firmware.I use it since years with the coming upgrades.
This problem is one week old...without any change in oscam software.
Actually I could to it with restarting the box every morning with a cronjob because I solve it with reboot.
"There are several ways to auto-restart Oscam if the service is no longer running." such as ???that is the only thing I need ![]()
I do use a legal oscam...(it's the german boxpirates forum)
in your file there is referenco to init.d but in my system there is no oscam related file there
My problem:Since a week or so I find oscam dead in the morning(everything ok at night until bedtime)
I browsed tons of pages regarding restart script but could not get any to work (once with cccam I had a good working one)
the "stupid"
filename is caused by the boxpirates updater which I find very convenient to use
Your linked file: I suspect it would not work with OS 2.5 ??
Oscam was alive in the morning...BUT messed my webinterface...many clients dropped offline.......had to delete the oscam.service file and stop the serviceto restore the functional config (:
I have created /etc/systemd/system/oscam.service
[Unit]
Description=OScam
After=network.target
Requires=network.target
[Service]
Type=forking
PIDFile=/var/run/oscam.pid
ExecStart=/usr/bin/oscam_11704 -b -B /var/run/oscam.pid
ExecStop=/bin/rm /var/run/oscam.pid
TimeoutStopSec=1
StartLimitInterval=0
[Install]
WantedBy=multi-user.target
+ systemctl enable oscam.service"
"systemctl start oscam.service"
seems to be ok....but I will see tomorrow morning if it works as the problem occurs during the night
Where is the systemd script located?
BTW:My script does not work.
Every morning box needs reboot to run oscam.
Antepenultim8 why not?actually the reason was that I could not reach the webinterface without reboot in the morning while oscam was ok at the previous night
I wanted to test a restart script
systemctl restart oscam_11704
systemctl stop oscam_11704
systemctl start oscam_11704
Correction !systemctl COMMANDS WORK.......