oscam stops by itself

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alom5
    DK Veteran
    • Nov 2008
    • 1648

    #1

    DM800 oscam stops by itself

    Hi, I have very recently upgraded my box to oscam.

    I seem to have a problem where oscam seems to stop. i had it running on 1.10 and had no problems but since i tried 2 different versions and seems to be same with both....currently running 1.20 #6422

    i have to manually restart it and then it's fine again...till the next day...

    anyone know why this could be happening??

    thanks.
  • Rodbouy
    DK Veteran
    • Jul 2010
    • 1320

    #2
    What does the log say ?

    Comment

    • davvo
      DK Veteran
      • Apr 2009
      • 666

      #3
      check

      oscam cam script
      and oscam bin
      dont have 2 different names

      if they dont match
      rename oscam bin
      to what is in the script
      then restart oscam



      example
      my oscam bin is called oscam
      so in the script it looks for oscam in
      /usr/bin/oscam

      if your oscam bin was called
      oscam_1.20
      and in the script you had
      oscam
      it wont start via the script when you reboot
      Last edited by davvo; 13 June, 2012, 14:11.

      Comment

      • alom5
        DK Veteran
        • Nov 2008
        • 1648

        #4
        Originally posted by Rodbouy
        What does the log say ?
        am at work now...but will have a look when i get back...

        i got it working firstly via the easy-oscam.tar.gz and installing via telnet ( this was the 1.10 version)....but that didn't allow me to stop the oscam as it wasn't anywhere on the image....

        so then i downloaded oscam srv via the univ cam manager on the glass hd skin.....stuck my config files and worked....but stopped everyday...
        Last edited by alom5; 13 June, 2012, 14:49.

        Comment

        • alom5
          DK Veteran
          • Nov 2008
          • 1648

          #5
          update.....

          in script it was called Oscam_srv.sh

          and in bin it was called oscam.

          changed the name in bin to same as script and restarted....box crashed and cam disappeared from the list.

          had to reinstall the cam.

          weird??

          Comment

          • davvo
            DK Veteran
            • Apr 2009
            • 666

            #6
            no you did it wrong

            look inside the script
            and then look at where the script points to

            then rename the bin to that

            give the bin and the script attributes 755

            the script will only work if the name and paths match

            if its like this inside the script
            /usr/bin/oscam
            then the bin needs to be named oscam

            if its like this inside the script
            /usr/bin/oscam_1.20
            then the bin needs to be named oscam_1.20
            Last edited by davvo; 13 June, 2012, 23:10.

            Comment

            • smoggie
              DK Veteran
              • Jul 2008
              • 863

              #7
              are your examples for paths from an ubuntu servers or the likes? on dm 500 sever paths I have are /var/script and /var/bin
              Last edited by smoggie; 13 June, 2012, 22:55.

              Comment

              • mtv1
                The Stig PT
                • Apr 2008
                • 4413

                #8
                chmod 775 the file

                or

                chown alom5 the file


                bordering


                >>>>>>>>>>Dreambox Tools<<<<<<<<<<

                Comment

                • davvo
                  DK Veteran
                  • Apr 2009
                  • 666

                  #9
                  Originally posted by smoggie
                  are your examples for paths from an ubuntu servers or the likes? on dm 500 sever paths I have are /var/script and /var/bin

                  dm800

                  as thread title says

                  your paths are right for a 500


                  for the bin in ubuntu
                  /usr/local/bin/oscam
                  and scripts go in /var/script
                  Last edited by davvo; 13 June, 2012, 23:25.

                  Comment

                  • alom5
                    DK Veteran
                    • Nov 2008
                    • 1648

                    #10
                    this is what's in the script file....



                    #!/bin/sh

                    SrvName="Oscam? 1.20"
                    SrvBin=oscam
                    # end

                    remove_tmp () {
                    rm -rf /tmp/ucm_srv.info* /tmp/msg.info /tmp/ecm.info /tmp/ecm0.info /tmp/*.tmp* /tmp/mbox.ver /tmp/newcs.pid /tmp/share.info /tmp/share.onl
                    }

                    case "$1" in
                    start)
                    killall -9 newcs_1.62 newcs_1.65 > /dev/null 2>&1
                    remove_tmp
                    echo $SrvName > /tmp/ucm_srv.info
                    /usr/UCM_CamSrv_bin/$SrvBin -c /var/tuxbox/config -t /tmp -b > /dev/null 2>&1 &
                    echo "Start Script Executed" > /tmp/msg.info
                    cp /usr/UCM_CamSrv_script/Oscam_Srv.sh /usr/lib/enigma2/python/Plugins/Extensions/GlassSysUtil/Auto_start/Oscam_Srv.sh
                    ;;
                    stop)
                    killall -9 $SrvBin 2>/dev/null
                    sleep 2
                    remove_tmp
                    echo "Stop Script Executed" > /tmp/msg.info
                    rm /usr/lib/enigma2/python/Plugins/Extensions/GlassSysUtil/Auto_start/Oscam_Srv.sh
                    ;;
                    restart)
                    killall -9 $SrvBin 2>/dev/null
                    sleep 2
                    remove_tmp
                    sleep 5
                    echo $SrvName > /tmp/ucm_srv.info
                    /usr/UCM_CamSrv_bin/$SrvBin -c /var/tuxbox/config -t /tmp -b > /dev/null 2>&1 &
                    echo "Restart Script Executed" > /tmp/msg.info
                    ;;
                    *)
                    echo "Script Execution Error" > /tmp/msg.info
                    exit 1
                    ;;
                    esac

                    exit 0

                    Comment

                    • davvo
                      DK Veteran
                      • Apr 2009
                      • 666

                      #11
                      what image are you using
                      what is the full cam name that you downloaded

                      Comment

                      • alom5
                        DK Veteran
                        • Nov 2008
                        • 1648

                        #12
                        glass hd skin - univ cam manager - glassutil-srv.oscam_6859_mipsel.ipk

                        installed off the blue button.

                        its an icvs image

                        Comment

                        Working...