PDA

View Full Version : Cron script to ensure client is always running!



Larson[h]
06-27-2002, 05:20 PM
Has someone created a cron script that will ensure that the client is always running? (Restarted in case of a server update or something?) I'm going away for a couple of months now, and a lot of cycles will be wasted if the clients stops after a week or so..

Frederik

Welnic
06-27-2002, 10:44 PM
Originally posted by Larson[h]
Has someone created a cron script that will ensure that the client is always running? (Restarted in case of a server update or something?) I'm going away for a couple of months now, and a lot of cycles will be wasted if the clients stops after a week or so..

Frederik

This is the crontab that I run on my dual G4. Since the OSX client has a memory leak I restart the client every 24 hours. If you only have one processor just delete the extra parts.

@reboot cd /Applications/distribfold1;rm foldtrajlite.lock; ./foldit

@reboot cd /Applications/distribfold0;rm foldtrajlite.lock; ./foldit

55 3 * * * cd /Applications/distribfold0; rm foldtrajlite.lock

0 4 * * * cd /Applications/distribfold0; ./foldit

55 4 * * * cd /Applications/distribfold1; rm foldtrajlite.lock

0 5 * * * cd /Applications/distribfold1; ./foldit


Clint