+- +-
Say hello if visiting :) by Gecko
11 Jan 2023, 07:43:05 pm

Seti is down again by Mike
09 Aug 2017, 10:02:44 am

Some considerations regarding OpenCL MultiBeam app tuning from algorithm view by Raistmer
11 Dec 2016, 06:30:56 am

Loading APU to the limit: performance considerations by Mike
05 Nov 2016, 06:49:26 am

Better sleep on Windows - new round by Raistmer
26 Aug 2016, 02:02:31 pm

Author Topic: how to stop non-service BOINC from bat file ?  (Read 7910 times)

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
how to stop non-service BOINC from bat file ?
« on: 20 Apr 2009, 07:29:03 pm »
When I use boinccmd --quit it returns immediately, before boinc.exe actually stops.
That lead to damaged client_state  :-\

Offline Richard Haselgrove

  • Messenger Pigeon
  • Knight who says 'Ni!'
  • *****
  • Posts: 2819
Re: how to stop non-service BOINC from bat file ?
« Reply #1 on: 21 Apr 2009, 04:40:29 am »
Mymod of Fred's script has a double safeguard:

    ireturn = objShell.Run("NET STOP BOINC", 0, True)
    wscript.sleep (5000)

That 'True' halts execution until the 'NET' command returns (I'm only handling service mode at the moment, because that's what I use on my XP CUDA machines). Then there's a timed delay as well.

Can you emulate either of those in Perl?

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: how to stop non-service BOINC from bat file ?
« Reply #2 on: 22 Apr 2009, 01:31:44 pm »
No need to emulate it in perl, shell script will be enough.
I prefer some wait for boinc shutdown (to do true optimization) instead of some pre-defined delay (it may be too short anyway  BTW ).
And no-service mode should be taken (net stop boinc kills boinc service just fine w/o additional means - our KNA bench use it ).

 

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?
Members
Total Members: 97
Latest: ToeBee
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 59559
Total Topics: 1672
Most Online Today: 355
Most Online Ever: 983
(20 Jan 2020, 03:17:55 pm)
Users Online
Members: 0
Guests: 85
Total: 85
Powered by EzPortal