You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constpsList=require('ps-list')//<--- Include the nodeJS module for checking if a process exists.
20
+
21
+
constBOINCPROJECTNAME="http://www.worldcommunitygrid.org/"//<--- That is the name of the project we are participating. We must use this as a reference for the start/suspend/stop tasks.
22
+
constBOINCSUSPENDCMD="project "+BOINCPROJECTNAME+" suspend"//<--- That is the BOINCCMD command to suspend temporarily the project.
23
+
constBOINCRESUMECMD="project "+BOINCPROJECTNAME+" resume"//<--- That is the BOINCCMD command to resume the project.
/* That is the actual 'start' process part of the source code. */
170
+
//await boinc.killExisting() //<--- We won't be killing the existing process if it's running. We are just going to be checking if running and then start it.
171
+
//<--- Find of a way to check if the BOINC client is running...if not we must start it 'safely'...
//if(boinc.process && boinc.process.killed === false) return boinc.process.kill() //<--- We don't need to kill the BOINC process anymore. If running we will be autostarting.
181
+
182
+
if(!checkIfRunning)//<--- If BOINC client is not running then we need to start it manually.
boinc.shouldBeRunning=false//<--- Inform the BOID Desktop Application that we the BOINC client module should not be running. (Avoid the auto-restart of the process by the application)
38
+
destroyBOINCClient()//<--- We must kill the BOINC process before we quit the BOID Desktop Application.
39
+
returnappWindow=null//<--- The original 'return' value of this method.
0 commit comments