NET (stop, start) in 5.10.20

Message boards : BOINC client : NET (stop, start) in 5.10.20
Message board moderation

To post messages, you must log in.

AuthorMessage
David Ryder

Send message
Joined: 14 Aug 06
Posts: 20
Australia
Message 12616 - Posted: 20 Sep 2007, 3:32:28 UTC
Last modified: 20 Sep 2007, 3:36:03 UTC

Hi,
XP SP1
I have not seen any posts addressing this - please excuse me if I missed them.

I rely heavily on NET STOP and NET START commands.

These do not work on my 5.10.20 installation.

Can anybody tell me if they still do or how I can stop/start the service via a batch file please?

Many thanks,
David
ID: 12616 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 12617 - Posted: 20 Sep 2007, 3:56:15 UTC

Stupid question: have you installed as a service? net stop/start is only for services.

Would it be acceptable to make BOINC stop computing but stay loaded in RAM? In that case, try 'boinc_cmd --set_run_mode always' to resume computing, and the same with 'never' to pause it.
ID: 12617 · Report as offensive
David Ryder

Send message
Joined: 14 Aug 06
Posts: 20
Australia
Message 12618 - Posted: 20 Sep 2007, 4:00:23 UTC - in response to Message 12617.  
Last modified: 20 Sep 2007, 4:03:05 UTC

Stupid question: have you installed as a service? net stop/start is only for services.

Would it be acceptable to make BOINC stop computing but stay loaded in RAM? In that case, try 'boinc_cmd --set_run_mode always' to resume computing, and the same with 'never' to pause it.



Not stupid - some don't understand these things :-) Yes - I always install as a service. It is listed as a service too.

I would rather not stay in RAM if possible.

David

ID: 12618 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 12620 - Posted: 20 Sep 2007, 4:05:35 UTC

What error(s) do you get attempting to use net commands?

By the way, many times I paused BOINC because I needed to do a RAM-intensive operation. BOINC apps got swapped and didn't cause any problem. They did take a while to get out of swap when I resumed it, but it was less than the CPU time I would have lost (CPDN checkpoints infrequently) if I had taken it out of RAM.
ID: 12620 · Report as offensive
David Ryder

Send message
Joined: 14 Aug 06
Posts: 20
Australia
Message 12621 - Posted: 20 Sep 2007, 4:20:17 UTC - in response to Message 12620.  
Last modified: 20 Sep 2007, 4:25:52 UTC

What error(s) do you get attempting to use net commans?

By the way, many times I paused BOINC because I needed to do a RAM-intensive operation. BOINC apps got swapped and didn't cause any problem. They did take a while to get out of swap when I resumed it, but it was less than the CPU time I would have lost (CPDN checkpoints infrequently) if I had taken it out of RAM.


Nothing happens at all. Nudda.
Using Admin Tools>Services Stop Service doesn't work either.


The syntax for the .bat file command - presumably that is only:
boinc_cmd --set_run_mode never


I have tried that and NET boinc_cmd --set_run_mode never
but neither work also.

I'm asking because this message client seems to want to be \\ happy with posts :-)

David
ID: 12621 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 12622 - Posted: 20 Sep 2007, 4:30:56 UTC
Last modified: 20 Sep 2007, 4:31:34 UTC

boinccmd is probably not on your PATH (by the way, it's without the underscore on Windows, I forgot that). You need "C:\\Program files\\BOINC\\boinccmd.exe" --set_run_mode never

EDIT: ARGH, imagine those are single slashes >.> Stupid forum.
ID: 12622 · Report as offensive
David Ryder

Send message
Joined: 14 Aug 06
Posts: 20
Australia
Message 12623 - Posted: 20 Sep 2007, 4:42:06 UTC - in response to Message 12622.  

boinccmd is probably not on your PATH (by the way, it's without the underscore on Windows, I forgot that). You need "C:\\Program files\\BOINC\\boinccmd.exe" --set_run_mode never

EDIT: ARGH, imagine those are single slashes >.> Stupid forum.



No luck (sigh).

Can I simply install 5.4.11 to roll back?

David
ID: 12623 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 12624 - Posted: 20 Sep 2007, 4:43:45 UTC - in response to Message 12623.  

No luck (sigh).

Can I simply install 5.4.11 to roll back?

David

Yes you can; but you should also try reinstalling 5.10.20. Net commands work for me.
ID: 12624 · Report as offensive
David Ryder

Send message
Joined: 14 Aug 06
Posts: 20
Australia
Message 12625 - Posted: 20 Sep 2007, 4:47:42 UTC - in response to Message 12624.  

No luck (sigh).

Can I simply install 5.4.11 to roll back?

David

Yes you can; but you should also try reinstalling 5.10.20. Net commands work for me.



As in
net start boinc
net stop boinc
??

ID: 12625 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 12626 - Posted: 20 Sep 2007, 4:55:02 UTC - in response to Message 12625.  
Last modified: 20 Sep 2007, 4:55:11 UTC

Yes you can; but you should also try reinstalling 5.10.20. Net commands work for me.

As in
net start boinc
net stop boinc
??

Yep, those work perfect for me. And also, boinccmd works under any install mode, both service and single user (and remotely too, if you set the authentication correctly).
ID: 12626 · Report as offensive
David Ryder

Send message
Joined: 14 Aug 06
Posts: 20
Australia
Message 12627 - Posted: 20 Sep 2007, 5:15:55 UTC - in response to Message 12626.  
Last modified: 20 Sep 2007, 5:17:32 UTC

Yes you can; but you should also try reinstalling 5.10.20. Net commands work for me.

As in
net start boinc
net stop boinc
??

Yep, those work perfect for me. And also, boinccmd works under any install mode, both service and single user (and remotely too, if you set the authentication correctly).


thanks for that link - useful.

I have net stop/start working now - oops - had not realized install had placed BOINC Manager in my startup directory which was obviously interfering. Closing it stopped processing - but - now it doesn't stop processing when I close it if I start it manually ... odd ... allowing the net command to work OK.

David


ID: 12627 · Report as offensive
Uioped1
Avatar

Send message
Joined: 2 Mar 06
Posts: 12
United States
Message 12672 - Posted: 21 Sep 2007, 1:00:37 UTC - in response to Message 12627.  



thanks for that link - useful.

I have net stop/start working now - oops - had not realized install had placed BOINC Manager in my startup directory which was obviously interfering. Closing it stopped processing - but - now it doesn't stop processing when I close it if I start it manually ... odd ... allowing the net command to work OK.

David



I believe that is the intended behavior of the service mode install... In other words the processing is supposed to be independant of the manager.

What I think may have happened is that you stopped the service, and then opened the manager. I believe that in this case, the manager will start a new instance of the backend that is not tied to the service, thus appearing to break the net start/stop commands.

Did you by chance set the service to not start automatically?

ID: 12672 · Report as offensive

Message boards : BOINC client : NET (stop, start) in 5.10.20

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.