Script to restart cccam if it stops

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • piptaps
    DK Veteran
    • Feb 2009
    • 399

    #1

    Script to restart cccam if it stops

    CCcam is stopping almost every hour. I have to manually restart it or reboot the box altogether.

    Im looking for a script which can auto start the cccam each time it stops.

    Im running 2.1.4, Pli jade image.

    There is crontab built in already
  • smoggie
    DK Veteran
    • Jul 2008
    • 863

    #2
    Hi, seen this on another forum and is not my work,

    Re: Script to restart CCcam if it stops responding



    here is the guide for Gemini 4.2!!

    Prepare this file in notepad and save it as ccheck.sh

    #!/bin/sh
    if ps x |grep -v grep |grep -c CCcam >/dev/null
    then
    echo "cccam... ok"
    else
    echo "cccam... restarting"
    /var/bin/CCcam_2.0.8 &
    fi


    ftp the mentioned file to the dreambox into /var/script

    set the file attributes to 755.

    When the file is sent all must be done in the dm menu, so follow below steps:

    1. Press Blue button
    2. Press Extra/Setup
    3. Press Services/Daemon
    4. goto Crond section and press Setup
    5. Press New
    6. Now you have to decide how frequent you want this script to run example every 30mins ( In this case make sure you only have 30 in the minutes section)
    7. go on the last line Command and press ok ( A selection window should open)
    8. Select the script from the list, in this case you should look for ccheck.sh or whatever name you used earlier to save it. press ok when you find the script and should return to the previous menu.
    9. Press Save once more and then exit.
    10. if all was done ok it should check if CCcam is running and if not it will start it for you!! You can test this by changing to common interface and wait for the ammount of minutes you specified earlier.

    Comment

    • IAmATeaf
      DK Veteran
      • Mar 2011
      • 591

      #3
      Can't you change to an image where cccam doesn't stop? Or if you are using an N line then give mgcamd a go?

      Comment

      • piptaps
        DK Veteran
        • Feb 2009
        • 399

        #4
        I was using Nabilo then changed to Pli jade, the result is the same. CCcam stops all the time throught the day

        Comment

        • IAmATeaf
          DK Veteran
          • Mar 2011
          • 591

          #5
          So does the cccam process just die? Never heard of this myself and I used to use cccam lots before.

          Comment

          • piptaps
            DK Veteran
            • Feb 2009
            • 399

            #6
            yes it just die, to re-start it box need reboot or manually starting the cam again with remote.

            I have seen that pli jade has crontab already built in. Problem is there is no script folder and the i cant make one at the same time

            Comment

            • IAmATeaf
              DK Veteran
              • Mar 2011
              • 591

              #7
              If this is happening across many images then you really need to find out why.

              There's supposed to be a way to run cccam so that all messages get logged, I'll see if I can find the info and post back.

              Comment

              • piptaps
                DK Veteran
                • Feb 2009
                • 399

                #8
                I have 5 gadgets connected to the super hub. 1 PC, 1 PS3, 2 dreamboxes, and an xbox 360. Problem is affecting the 2 dreamboxes same time. They stop same time all the time

                Comment

                • entropy
                  Junior Member
                  • Aug 2010
                  • 25

                  #9
                  i have exactly the same problem here, and so does a friend of mine, nearby. the one thing in common we all have, is the superhub.

                  i am on my second one already, because they are rubbish. but i have just caught my dm500 now, cccam not responding, so i went into my superhub and it said the device was connected.

                  i never rebooted the box, i just restarted the cam, and it all came back.

                  this makes me think the superhub cant run cccam 24/7, without dropping out now and again, and when it does, cam has to be restarted manualy.

                  Comment

                  • entropy
                    Junior Member
                    • Aug 2010
                    • 25

                    #10
                    im going to give this script a go, does anyone know how to ftp it to the pli jade image, i dont seem to have a script directory in mine, or cron d either.

                    Comment

                    • entropy
                      Junior Member
                      • Aug 2010
                      • 25

                      #11
                      right, no takers, so im gonna change my image to gemini, and try the script with that.

                      can anyone explain though, how do i set the file attributes to 755?

                      Comment

                      • kokar
                        Newbie
                        • Sep 2009
                        • 9

                        #12
                        attributes to 755

                        Originally posted by entropy
                        right, no takers, so im gonna change my image to gemini, and try the script with that.

                        can anyone explain though, how do i set the file attributes to 755?
                        You have to use a FTP program like Cute FTP or FTP Command or Core FTP and change the attribute to 755.

                        Comment

                        • digicon
                          V.I.P. Member
                          • Jul 2009
                          • 8261

                          #13
                          Originally posted by kokar
                          You have to use a FTP program like Cute FTP or FTP Command or Core FTP and change the attribute to 755.

                          This probably got sorted the last post was over 12 months ago

                          Comment

                          • waj_uk
                            Top Poster
                            • Oct 2009
                            • 175

                            #14
                            I have a similar problem in my case its oscam as card reader seems to lose connection with cccam im using a N line someone mentioned mgcamd would this be better and how do I go about changing this?

                            Sent from my GT-N7100 using Tapatalk 2

                            Comment

                            • digicon
                              V.I.P. Member
                              • Jul 2009
                              • 8261

                              #15
                              Originally posted by waj_uk
                              I have a similar problem in my case its oscam as card reader seems to lose connection with cccam im using a N line someone mentioned mgcamd would this be better and how do I go about changing this?

                              Sent from my GT-N7100 using Tapatalk 2
                              Read the Rules Please : http://www.digital-kaos.co.uk/forums...rules-2/#post2 : Discussions about cardsharing are not allowed, including, but not limited to, cccam, gbox, mbox, etc.


                              Closed

                              Comment

                              Working...