Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137215 - Patch to foldingathome-5.0.2-r1 initscript to schedule as batch.
Summary: Patch to foldingathome-5.0.2-r1 initscript to schedule as batch.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: Gentoo Science Biology related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-18 17:06 UTC by Chad A. Simmons
Modified: 2006-11-01 19:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chad A. Simmons 2006-06-18 17:06:52 UTC
*** foldingathome.orig  Sun Jun 18 19:57:34 2006
--- foldingathome       Sun Jun 18 19:59:04 2006
***************
*** 32,38 ****
        for (($CPU; CPU > 0; CPU--)); do
                ebegin "Starting Folding@Home on CPU ${CPU}"
                cd /opt/foldingathome/client${CPU}/
!               start-stop-daemon --chdir ${PWD} --chuid foldingathome --nicelevel 19 --start --background --exec ./foldingathome -- ${FOLD_OPTS}
                eend $?
        done
  }
--- 32,38 ----
        for (($CPU; CPU > 0; CPU--)); do
                ebegin "Starting Folding@Home on CPU ${CPU}"
                cd /opt/foldingathome/client${CPU}/
!               schedtool -B -e start-stop-daemon --chdir ${PWD} --chuid foldingathome --nicelevel 19 --start --background --exec ./foldingathome -- ${FOLD_OPTS}
                eend $?
        done
  }
Comment 1 Chad A. Simmons 2006-09-12 04:44:19 UTC
hmm this doesn't work as the actual Fah_Core processes don't get scheduled as batch. I've put in a cron job to find the name of the Fah processes using grep and then running schedtool -B `pidof coreexename`. Running this everyhour seems to work well but I'm not sure why the Batch scheduling does not propigate to the actual Fah client app.
Comment 2 Olivier Fisette (RETIRED) gentoo-dev 2006-11-01 19:07:36 UTC
Thanks for your work anyway. If you have an updated patch that does work, feel free to reopen.