'' This script will work on most linux dist. including enigma1/2.
The script will check if the CCCam proccess are running with a crontab and restart CCcam if stopped for some reason.
Make a file called checkcccam.sh and place it under /bin. chmod with 755 and paste this into the file:
#!/bin/bash
CCCAM_CONFIG_FILE_PATH="/etc"
CCCAM_EXECUTABLE_PATH="/bin"
NAME_OFF_CCCAM_EXECUTABLE="CCcam.x86"
#
function Check_CCcam {
ps -eo comm,pid,etime > tmpcat
PID=$(grep -i $NAME_OFF_CCCAM_EXECUTABLE tmpcat | awk -F" " '{ print $2}')
TIME=$(grep -i $NAME_OFF_CCCAM_EXECUTABLE tmpcat | awk -F" " '{ print $3}')
}
#
Check_CCcam
if [ "$PID" = "" ]; then
cd $CCCAM_EXECUTABLE_PATH
./$NAME_OFF_CCCAM_EXECUTABLE -C $CCCAM_CONFIG_FILE_PATH/CCcam.cfg
fi
exit 0
Modify the 3 lines marked with red to fit your local settings for paths and name of cccam file.
Then make a crontab to run this script every 1 min.:
# crontab -e
Insert this line and save the file:
* * * * * /bin/checkcccam.sh
Try to kill your cccam process and check that it starts again in max. 1 min. ''


Thanks:
Likes:
Dislikes: 

Reply With Quote