In another thread, DMMC said:
So I thought we should have a look at this.If I could get the %@@!!*&@ scheduler to work right in BOINC so that systems would run after hours I could put alot more systems in it
We know that there is a "service" instance of BOINC and it has CLI controls. We know that we can't directly control a service from the scheduler. But we know that we can control WSH (Windows Shell script) files from the scheduler.
So what we need is some code to start and stop the service.
We don't want the WSH script running the whole time so we should split this into 2 files (1 to start it and 1 to stop it each to be called by the scheduler).
Now we need some WSH control code (can be .wsh or .vbs or .js). There's not much that you can't find or get a lead on from MSDN & the MS Knowledgebase these days.:
http://msdn.microsoft.com/library/de...ting061499.asp
I found this piece which should help:
http://msdn.microsoft.com/library/de...rvicestart.asp
Alternatively you could use the ShellExecute method to start BOINC as a CLI task and send the kill SIG to the process later on to stop it.
I'd prefer to use the service instance though as the output is sent to the windows message log.