Wish : Maintenance mode for the client

Message boards : BOINC client : Wish : Maintenance mode for the client
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 4955 - Posted: 10 Jul 2006, 6:58:04 UTC
Last modified: 10 Jul 2006, 7:06:06 UTC

Currently we need a shell or a monitor attached to the host if we want to do changes like update the core client, modify, add or delete app_info.xml or global_prefs_override.xml.

What about this :

If BOINC detects a file "suspend.req" in the BOINC directory, it stops all project clients, spawns a little program that
- renames "suspend.req" to "suspend.ack"
- waits until "suspend.ack" disappears
- restarts BOINC.

Then BOINC exits and gives us the chance to do all maintenance that needs to be done just with file access (FTP, LAN), no need for a shell or a monitor on that remote box.

When the maintenance is done, we delete the file "suspend.ack", the little program doesn't see the file anymore, spawns the BOINC client and then exits.
_____________________

Another advantage of this mimik would be that it would easily be possible to pause BOINC from any other task that requires that BOINC does not run, like backups or programs that need all CPU and RAM for themselves.

I know that this whole thing can be done easily with a Unix script by finding the BOINC PID, killing it and restarting it later but for Windows there is not such a simple solution.
��u�
ID: 4955 · Report as offensive
Metod, S56RKO

Send message
Joined: 9 Sep 05
Posts: 128
Slovenia
Message 4980 - Posted: 12 Jul 2006, 5:27:41 UTC - in response to Message 4955.  

Currently we need a shell or a monitor attached to the host if we want to do changes like update the core client, modify, add or delete app_info.xml or global_prefs_override.xml.

What about this :

If BOINC detects a file "suspend.req" in the BOINC directory, it stops all project clients, spawns a little program that
- renames "suspend.req" to "suspend.ack"
- waits until "suspend.ack" disappears
- restarts BOINC.

Then BOINC exits and gives us the chance to do all maintenance that needs to be done just with file access (FTP, LAN), no need for a shell or a monitor on that remote box.

When the maintenance is done, we delete the file "suspend.ack", the little program doesn't see the file anymore, spawns the BOINC client and then exits.
_____________________

Another advantage of this mimik would be that it would easily be possible to pause BOINC from any other task that requires that BOINC does not run, like backups or programs that need all CPU and RAM for themselves.

I know that this whole thing can be done easily with a Unix script by finding the BOINC PID, killing it and restarting it later but for Windows there is not such a simple solution.



I agree that the functionality you described would be nice to have.

The functionality you described as a nice side effect is already available: by using boinc_cmd you can suspend and resume BOINC eaisly even in Windows.
Metod ...
ID: 4980 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 5199 - Posted: 3 Aug 2006, 7:35:38 UTC

Suspending BOINC with boinc_cmd will not free all ressources (open files, RAM) so it is not exactly the same.
ID: 5199 · Report as offensive

Message boards : BOINC client : Wish : Maintenance mode for the client

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.