Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > DreamBox > Setting Dream

Setting Dream Discussion, Cron of gbox to check if it run at DreamBox forum; Hello, i have make a new installation on my image and i've lost all... I need the cron that verify ...

Reply
 
LinkBack Thread Tools Display Modes
Cron of gbox to check if it run
Old
  (#1)
murice
Junior Member
 
murice's Avatar
 
Offline
Posts: 3

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 2
Magic: 1 / 69
Experience: 10%

Thanks: 0
Thanked 2 Times in 2 Posts
Join Date: Apr 2009
Cron of gbox to check if it run - 28-April-2009, 11:41

Hello, i have make a new installation on my image and i've lost all...

I need the cron that verify if gbox run or not, if not he run gbox, cause when i make my dream 7020 in sleep mode gbox stop to run after moment...

Thank you for your help

(28-April-2009 12:17)
i have found it

cron :

0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3 6,38,40,42,44,46,48,50,52,54,56,58 * * * * /sbin/sh /usr/script/checker.sh start /dev/nul

checker.sh

#!/bin/sh
while [ 1 ]
do
pidof gbox >/dev/null
if [ $? -eq 0 ] ; then
echo ""
else
date=`date`
echo "Restarting GBOX : $date" >> /tmp/checkgbox.log
/var/bin/gbox &
if [ $? -eq 0 ] ; then
echo "ok!"
else
echo "hm, didn't work. Try doing it manually"
fi
fi
sleep 10
done

Last edited by murice; 28-April-2009 at 13:17.. Reason: Automerged Doublepost
   
Reply With Quote
The Following User Says Thank You to murice For This Useful Post:
westwood_hack (29-April-2009)
Reply

Bookmarks

Tags
check, cron, gbox


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



ECS on RSS ECS on Twitter ECS on Facebook ECS on Youtube
Follow us on:

Powered by vBulletin
Copyright 2002 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Dreambox