Sign up here and you can log into the forum!

Fix for Cron-Job problem

General homebrew discussion area

Fix for Cron-Job problem   

Postby Sascha_77 » Fri Aug 26, 2011 3:26 pm

Hi folx.

i figured out how to activate Cron-Tabs "properly". Normally after a reboot the crontab is not loaded automatically. That´s a little bit annoying. The Solution for me was the following.

Put this 2 lines at the start of the S99user-script:

Code: Select all
sleep 120
crontab -u root /conf/root


Before this could work, create an file named "root" in the /conf Directory
Code: Select all
touch /conf/root


After that:

Code: Select all
nano /conf/root


That is my content of "root" for example:
Code: Select all
# min   hour    mday    month   wday    command
*/10     *       *       *       *   /apps/downloadd/bin/ddconsole --host 127.0.0.1 --port 56789 --command "pkg activate 0,1,2,3,4,5,6,7,8,9"
*/1      *       *       *       *   echo power led off >> /proc/led
*/1      *       *       *       *   echo status led off >> /proc/led
*/1      *       *       *       *   sh /conf/foldercheck


Cronjobs are now loaded automatically and all is fine. :D
Sascha_77
n00b
 
Posts: 13
Joined: Sun May 08, 2011 3:27 am

Re: Fix for Cron-Job problem   

Postby mad_ady » Sat Aug 27, 2011 3:22 am

Good job on describing the solution. However, I don't know why, but my cron jobs have worked without issues since 0.4.2.2 (when I first created the jobs), so I assumed they would work on all firmwares.

I'm moving your comments to the wiki: http://wiki.wdlxtv.com/Crontab
Fell free to make changes if you want to.
User avatar
mad_ady
Developer
 
Posts: 3028
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Fix for Cron-Job problem   

Postby kroetkroet » Sat Aug 27, 2011 4:50 am

mad_ady, maybe you are running ext3/root.bin and not native flash :?:
WDLXTV-fan! - In case you need further assistance: read our WIKI, search our Forum and most of all: donate 'something' to b-rad for his great efforts!!!
User avatar
kroetkroet
Beta Tester
 
Posts: 723
Joined: Mon Apr 05, 2010 11:53 pm

Re: Fix for Cron-Job problem   

Postby mad_ady » Sat Aug 27, 2011 5:14 am

Nope, always running flashed version, and I never had problems with it... Didn't realize it wasn't working for others.

But I did set it up back in 0.4.2.2 as far as I remember... Maybe some things have broken since then...
User avatar
mad_ady
Developer
 
Posts: 3028
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Fix for Cron-Job problem   

Postby b-rad.cc » Sat Aug 27, 2011 6:42 am

uhmm...
Code: Select all
config_tool -c CROND=ON

working just fine. :ugeek:
PM's are for private matters only, please post public matters on the forum to help others who might have the same issue.
:mrgreen:
User avatar
b-rad.cc
WDLXTV Team
 
Posts: 3002
Joined: Sat Apr 03, 2010 9:35 am
Location: New York


Return to WDTV G2 & WDTV Live homebrew discussion

Who is online

Users browsing this forum: No registered users and 1 guest