Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go ยป
No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 875 times and has 3 replies Next Thread
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Running BOINC in windows as a self-rebooting 'service' without BOINC service install: Aedazans DIY Guide

I have boinc running on a computer which I share with others from time too time. Annoyingly one or more of these people like to fiddle with settings and such. Due to

this I have made a system for windows 7 which can be used to:

When the system is idle:
1. Check too see if boinc.exe is running and if not execute boincmgr.exe (and boinc.exe)
2. Close boincmgr.exe once boinc.exe is running. (basically service mode without the extra user installation)

The files are as follows:


---------------------------------------------------------
invis.vbs -- stored in C:\
---------------------------------------------------------
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
---------------------------------------------------------


---------------------------------------------------------
checker.bat -- stored in C:\
---------------------------------------------------------
tasklist /FI "IMAGENAME eq boinc.exe" /FO CSV > search.log

FOR /F %%3 IN (Search.log) DO IF %%3==INFO: GOTO end

del search.log
Date /t >> C:\BoincServiceLog.log
time /t >> C:\BoincServiceLog.log
Echo Boinc Running, Reboot not required >> C:\BoincServiceLog.log
Echo ---------------------------------------------- >> C:\BoincServiceLog.log
exit
:end
del search.log
start /min C:\starter.bat
ping 10.0.0.1
taskkill.exe /IM boincmgr.exe /F

---------------------------------------------------------


---------------------------------------------------------
starter.bat -- stored in C:\
---------------------------------------------------------
"C:\Program Files (x86)\BOINC\boincmgr.exe"
Date /t >> C:\BoincServiceLog.log
time /t >> C:\BoincServiceLog.log
Echo Boinc Crash/not running, Rebooted Successfully >> C:\BoincServiceLog.log
Echo ---------------------------------------------- >> C:\BoincServiceLog.log
exit
---------------------------------------------------------





-------------------------------------------------------
Checker.ink -- standard windows shortcut incase you want to test it. You will need to run it in administrator mode or it WILL NOT WORK
-------------------------------------------------------
The target is:
C:\Windows\System32\wscript.exe "C:\invis.vbs" "C:\checker.bat"
The start in is:
C:\Windows\system32
-------------------------------------------------------



Once you have made these files open up the Task Scheduler.
Create a new task with following settings:
Under the Triggers tab:
Click new.
Set the setting to daily with a recur every 1 days.
Select repeat task every 5 minutes for an indefinite duration.
Select stop task if it runs longer than 1 minute
Select enable then click ok.

Now select the actions tab and click new.
Enter C:\Windows\System32\wscript.exe into the program/script space.
Add "C:\invis.vbs" "C:\checker.bat" too the add arguments textbox
Then select ok

Now select the conditions tab.
Select the start the tank only if the computer is idle for 10 minutes
Select the stop if the computer ceases to be idle
Select the restart if the idle state resumes

Now go back to the general tab and select the run with highest privileges box.
Now click ok!

You may now bow in awe at Aedazans awesome power...

Notes:
The ping command is there as a delay to allow time for everything to load, you may increase it by adding -n followed by a number greater than 4 Example: Ping 10.0.0.1 -n 22

Log file stored at C:\BoincServiceLog.log
----------------------------------------
[Edit 2 times, last edit by Former Member at Feb 8, 2011 10:01:18 AM]
[Feb 8, 2011 8:59:57 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Running BOINC in windows as a self-rebooting 'service' without BOINC service install: Aedazans DIY Guide

When this method is used, the BOINC manager icon will not display in the system tray and BOINC will automatically restart when closed at time specified in task scheduler ( My defaults are at next idle time).
[Feb 8, 2011 9:02:40 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Running BOINC in windows as a self-rebooting 'service' without BOINC service install: Aedazans DIY Guide

Hi Aedazan the Awesome

Have you asked your co-computer-users why they fiddle with the settings? Does it bother or interfere with what they're doing such as gaming, heavy image rendering or whatever. BOINC can be made to pause when certain applications are loaded or if the non-BOINC CPU load is above a percentage, WCG default 50%.

The cc_config.xml has a number of options to stop changes e.g. to only use the Simple View GUI, or stop attaching new projects. The interface can be set to remember on exit to only exit the BM but not the core client service.

Also, if the client is installed as a service [protected application execution], that's the only thing you need to [re]start ** without the need of loading or hiding the BM interface or icon.

Just a little to consider.

Happy crunching.

** As service install BOINC core client will load before anyone signing in i.e. silently upon booting.
----------------------------------------
[Edit 1 times, last edit by Former Member at Feb 8, 2011 9:37:52 AM]
[Feb 8, 2011 9:35:19 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Running BOINC in windows as a self-rebooting 'service' without BOINC service install: Aedazans DIY Guide

I have all of my computers set to only crunch when idle for 10 minutes, some people just like to fiddle I guess..
[Feb 8, 2011 9:53:29 AM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread